Print this page
10823 should ignore DW_TAG_subprogram with DW_AT_declaration tags
10824 GCC7-derived CTF can double qualifiers on arrays
10825 ctfdump -c drops last type
10826 ctfdump -c goes off the rails with a missing parent
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/common/ctf/ctf_impl.h
          +++ new/usr/src/common/ctf/ctf_impl.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  
  23   23  /*
  24   24   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  25   25   * Use is subject to license terms.
  26   26   */
  27   27  /*
  28      - * Copyright (c) 2015, Joyent, Inc.  All rights reserved.
       28 + * Copyright 2019, Joyent, Inc.
  29   29   */
  30   30  
  31   31  #ifndef _CTF_IMPL_H
  32   32  #define _CTF_IMPL_H
  33   33  
  34   34  #include <sys/types.h>
  35   35  #include <sys/errno.h>
  36   36  #include <sys/sysmacros.h>
  37   37  #include <sys/ctf_api.h>
  38   38  
↓ open down ↓ 269 lines elided ↑ open up ↑
 308  308  
 309  309  extern void *ctf_zopen(int *);
 310  310  
 311  311  extern ctf_id_t ctf_add_encoded(ctf_file_t *, uint_t, const char *,
 312  312      const ctf_encoding_t *, uint_t);
 313  313  extern ctf_id_t ctf_add_reftype(ctf_file_t *, uint_t, const char *, ctf_id_t,
 314  314      uint_t);
 315  315  extern boolean_t ctf_sym_valid(uintptr_t, int, uint16_t, uint64_t,
 316  316      uint32_t);
 317  317  
      318 +extern const ctf_type_t *ctf_dyn_lookup_by_id(ctf_file_t *, ctf_id_t);
      319 +extern int ctf_dyn_array_info(ctf_file_t *, ctf_id_t, ctf_arinfo_t *);
      320 +
 318  321  extern const char _CTF_SECTION[];       /* name of CTF ELF section */
 319  322  extern const char _CTF_NULLSTR[];       /* empty string */
 320  323  
 321  324  extern int _libctf_version;             /* library client version */
 322  325  extern int _libctf_debug;               /* debugging messages enabled */
 323  326  
 324  327  #ifdef  __cplusplus
 325  328  }
 326  329  #endif
 327  330  
 328  331  #endif  /* _CTF_IMPL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX