Print this page
12364 mdb trips assertion related to autowrap

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/mdb/mdb_io.h
          +++ new/usr/src/cmd/mdb/common/mdb/mdb_io.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2020 Joyent, Inc.
  24   26   */
  25   27  
  26   28  #ifndef _MDB_IO_H
  27   29  #define _MDB_IO_H
  28   30  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   31  #ifdef  __cplusplus
  32   32  extern "C" {
  33   33  #endif
  34   34  
  35   35  #ifdef _MDB
  36   36  
  37   37  #include <sys/types.h>
  38   38  #include <setjmp.h>
  39   39  #include <stdarg.h>
  40   40  #include <stdio.h>
↓ open down ↓ 101 lines elided ↑ open up ↑
 142  142  extern int mdb_iob_err(mdb_iob_t *);
 143  143  
 144  144  extern ssize_t mdb_iob_read(mdb_iob_t *, void *, size_t);
 145  145  extern ssize_t mdb_iob_write(mdb_iob_t *, const void *, size_t);
 146  146  extern int mdb_iob_ctl(mdb_iob_t *, int, void *);
 147  147  extern const char *mdb_iob_name(mdb_iob_t *);
 148  148  extern size_t mdb_iob_lineno(mdb_iob_t *);
 149  149  extern size_t mdb_iob_gettabstop(mdb_iob_t *);
 150  150  extern size_t mdb_iob_getmargin(mdb_iob_t *);
 151  151  
      152 +extern void mdb_iob_set_autowrap(mdb_iob_t *);
      153 +
 152  154  extern void mdb_iob_stack_create(mdb_iob_stack_t *);
 153  155  extern void mdb_iob_stack_destroy(mdb_iob_stack_t *);
 154  156  extern void mdb_iob_stack_push(mdb_iob_stack_t *, mdb_iob_t *, size_t);
 155  157  extern mdb_iob_t *mdb_iob_stack_pop(mdb_iob_stack_t *);
 156  158  extern size_t mdb_iob_stack_size(mdb_iob_stack_t *);
 157  159  
 158  160  extern const char *mdb_iob_format2str(const char *);
 159  161  
 160  162  /*
 161  163   * Available i/o backend constructors for common MDB code.  These are
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX