diff options
| author | Roland McGrath <[email protected]> | 2010-06-15 23:10:35 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-06-16 12:11:03 -0700 |
| commit | 3e0f7d1d1b817040cef82f41879f471ab59b663e (patch) | |
| tree | 42999dc59b7bab5c0524f15a7f928cb2905f49d5 /libdw/libdw.h | |
| parent | 3e4b5bbeca8987527c11a1ea048459a7ebd4ab5e (diff) | |
Handle reading .debug_types section.
Diffstat (limited to 'libdw/libdw.h')
| -rw-r--r-- | libdw/libdw.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libdw/libdw.h b/libdw/libdw.h index 75998e1a..bd764a3a 100644 --- a/libdw/libdw.h +++ b/libdw/libdw.h @@ -288,12 +288,22 @@ extern int dwarf_end (Dwarf *dwarf); /* Get the data block for the .debug_info section. */ extern Elf_Data *dwarf_getscn_info (Dwarf *dwarf); -/* Read the header for the DWARF CU header. */ +/* Read the header for the DWARF CU. */ extern int dwarf_nextcu (Dwarf *dwarf, Dwarf_Off off, Dwarf_Off *next_off, size_t *header_sizep, Dwarf_Off *abbrev_offsetp, uint8_t *address_sizep, uint8_t *offset_sizep) __nonnull_attribute__ (3); +/* Read the header of a DWARF CU or type unit. If TYPE_SIGNATUREP is not + null, this reads a type unit from the .debug_types section; otherwise + this reads a CU from the .debug_info section. */ +extern int dwarf_next_unit (Dwarf *dwarf, Dwarf_Off off, Dwarf_Off *next_off, + size_t *header_sizep, uint16_t *versionp, + Dwarf_Off *abbrev_offsetp, + uint8_t *address_sizep, uint8_t *offset_sizep, + uint64_t *type_signaturep, Dwarf_Off *type_offsetp) + __nonnull_attribute__ (3); + /* Decode one DWARF CFI entry (CIE or FDE) from the raw section data. The E_IDENT from the originating ELF file indicates the address |
