Print this page
10816 ctf_dwarf_convert_type() relies on un-initialized id
10817 ctfconvert -i option is mis-handled
10818 Improve ctfconvert error messages
10819 ctfconvert should handle empty dies
10820 ctfconvert -i never converts
10821 bad free in ctf_dwarf_init_die
10815 shouldn't build gcore.c as part of kmdb
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ctf_api.h
          +++ new/usr/src/uts/common/sys/ctf_api.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  /*
  27      - * Copyright 2018 Joyent, Inc.
       27 + * Copyright 2019 Joyent, Inc.
  28   28   */
  29   29  
  30   30  /*
  31   31   * This header file defines the interfaces available from the CTF debugger
  32   32   * library, libctf, and an equivalent kernel module.  This API can be used by
  33   33   * a debugger to operate on data in the Compact ANSI-C Type Format (CTF).
  34   34   * This is NOT a public interface, although it may eventually become one in
  35   35   * the fullness of time after we gain more experience with the interfaces.
  36   36   *
  37   37   * In the meantime, be aware that any program linked with this API in this
↓ open down ↓ 71 lines elided ↑ open up ↑
 109  109          ECTF_CONFLICT,          /* conflicting type definition present */
 110  110          ECTF_REFERENCED,        /* type has outstanding references */
 111  111          ECTF_NOTDYN,            /* type is not a dynamic type */
 112  112          ECTF_ELF,               /* elf library failure */
 113  113          ECTF_MCHILD,            /* cannot merge child container */
 114  114          ECTF_LABELEXISTS,       /* label already exists */
 115  115          ECTF_LCONFLICT,         /* merged labels conflict */
 116  116          ECTF_ZLIB,              /* zlib library failure */
 117  117          ECTF_CONVBKERR,         /* CTF conversion backend error */
 118  118          ECTF_CONVNOCSRC,        /* No C source to convert from */
 119      -        ECTF_NOCONVBKEND        /* No applicable conversion backend */
      119 +        ECTF_CONVNODEBUG        /* No debug info to convert into CTF */
 120  120  };
 121  121  
 122  122  /*
 123  123   * If the debugger needs to provide the CTF library with a set of raw buffers
 124  124   * for use as the CTF data, symbol table, and string table, it can do so by
 125  125   * filling in ctf_sect_t structures and passing them to ctf_bufopen():
 126  126   */
 127  127  typedef struct ctf_sect {
 128  128          const char *cts_name;   /* section name (if any) */
 129  129          ulong_t cts_type;       /* section type (ELF SHT_... value) */
↓ open down ↓ 206 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX