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/lib/libctf/common/libctf_impl.h
          +++ new/usr/src/lib/libctf/common/libctf_impl.h
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22   */
  23   23  
  24   24  #include <libelf.h>
  25   25  #include <libctf.h>
  26   26  #include <ctf_impl.h>
  27   27  
  28   28  #ifdef __cplusplus
  29   29  extern "C" {
  30   30  #endif
  31   31  
  32      -typedef enum ctf_conv_status {
  33      -        CTF_CONV_SUCCESS        = 0,
  34      -        CTF_CONV_ERROR          = 1,
  35      -        CTF_CONV_NOTSUP         = 2
  36      -} ctf_conv_status_t;
  37      -
  38      -typedef ctf_conv_status_t (*ctf_convert_f)(int, Elf *, uint_t, int *,
       32 +typedef int (*ctf_convert_f)(int, Elf *, uint_t, uint_t,
  39   33      ctf_file_t **, char *, size_t);
  40      -extern ctf_conv_status_t ctf_dwarf_convert(int, Elf *, uint_t, int *,
       34 +extern int ctf_dwarf_convert(int, Elf *, uint_t, uint_t,
  41   35      ctf_file_t **, char *, size_t);
  42   36  
  43   37  /*
  44   38   * Symbol walking
  45   39   */
  46   40  typedef int (*ctf_symtab_f)(const Elf64_Sym *, ulong_t, const char *,
  47   41      const char *, boolean_t, void *);
  48   42  extern int ctf_symtab_iter(ctf_file_t *, ctf_symtab_f, void *);
  49   43  
  50   44  /*
↓ open down ↓ 17 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX