summaryrefslogtreecommitdiff
path: root/libdw/dwarf.h
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2012-06-22 12:02:45 +0200
committerMark Wielaard <mjw@redhat.com>2012-08-09 16:32:43 +0200
commit775375e3bd177cb19acb5020b6e0917551807276 (patch)
tree26ec5e40f426d5ace9fd636818197cd0025b672a /libdw/dwarf.h
parent836db608432ba50f76c0a63ec7bd05694341a1d4 (diff)
downloadelfutils-775375e3bd177cb19acb5020b6e0917551807276.tar.gz
libdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.
DWZ multifile forms http://www.dwarfstd.org/ShowIssue.php?issue=120604.1 DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt reference an alternative debuginfo file. dwarf_begin and dwarf_begin_elf will try to use this automatically. There are no user visible changes to the libdw interface. dwarf_formref_die, dwarf_formstring and dwarf_formudata can now return a Dwarf_Die which comes from a CU in the alternative Dwarf descriptor. __libdw_read_offset was adjusted to take an alternative Dwarf descriptor into account. Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'libdw/dwarf.h')
-rw-r--r--libdw/dwarf.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdw/dwarf.h b/libdw/dwarf.h
index f41d2960..81bc7fe5 100644
--- a/libdw/dwarf.h
+++ b/libdw/dwarf.h
@@ -299,7 +299,10 @@ enum
DW_FORM_sec_offset = 0x17,
DW_FORM_exprloc = 0x18,
DW_FORM_flag_present = 0x19,
- DW_FORM_ref_sig8 = 0x20
+ DW_FORM_ref_sig8 = 0x20,
+
+ DW_FORM_GNU_ref_alt = 0x1f20, /* offset in alternate .debuginfo. */
+ DW_FORM_GNU_strp_alt = 0x1f21 /* offset in alternate .debug_str. */
};