aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2020-07-29 16:33:07 +0100
committerNick Clifton <nickc@redhat.com>2020-07-29 16:33:07 +0100
commita69ee13f5a5223f00636fbafe583a40eeb9b1f3a (patch)
treecfa83aff3e9a04dc5f8f1589c496cddf1a497dc3
parent4d68fd750fa0ce9de7a5245f9eff539f31a95fb6 (diff)
downloadgdb-a69ee13f5a5223f00636fbafe583a40eeb9b1f3a.zip
gdb-a69ee13f5a5223f00636fbafe583a40eeb9b1f3a.tar.gz
gdb-a69ee13f5a5223f00636fbafe583a40eeb9b1f3a.tar.bz2
For DWARF v5 Dwarf Package Files (.dwp files), the section identifier encodings have changed. This patch updates dwarf2.h to contain the new encodings. (see http://dwarfstd.org/doc/DWARF5.pdf, section 7.3.5).
* dwarf2.h (enum dwarf_sect_v5): A new enum section for the sections in a DWARF 5 DWP file (DWP version 5).
-rw-r--r--include/ChangeLog5
-rw-r--r--include/dwarf2.h41
2 files changed, 34 insertions, 12 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index e65e85d..035e2b9 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-28 Caroline Tice <cmtice@google.com>
+
+ * dwarf2.h (enum dwarf_sect_v5): A new enum section for the
+ sections in a DWARF 5 DWP file (DWP version 5).
+
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
* ctf-api.h (CTF_LINK_NONDEDUP): New, turn off the
diff --git a/include/dwarf2.h b/include/dwarf2.h
index 882453d..bd33e06 100644
--- a/include/dwarf2.h
+++ b/include/dwarf2.h
@@ -488,19 +488,36 @@ enum dwarf_unit_type
#define DW_EH_PE_indirect 0x80
/* Codes for the debug sections in a dwarf package (.dwp) file.
- Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFissionDWP. */
+ (From the pre-standard formats Extensions for Fission.
+ See http://gcc.gnu.org/wiki/DebugFissionDWP). */
enum dwarf_sect
- {
- DW_SECT_INFO = 1,
- DW_SECT_TYPES = 2,
- DW_SECT_ABBREV = 3,
- DW_SECT_LINE = 4,
- DW_SECT_LOC = 5,
- DW_SECT_STR_OFFSETS = 6,
- DW_SECT_MACINFO = 7,
- DW_SECT_MACRO = 8,
- DW_SECT_MAX = 8
- };
+{
+ DW_SECT_INFO = 1,
+ DW_SECT_TYPES = 2,
+ DW_SECT_ABBREV = 3,
+ DW_SECT_LINE = 4,
+ DW_SECT_LOC = 5,
+ DW_SECT_STR_OFFSETS = 6,
+ DW_SECT_MACINFO = 7,
+ DW_SECT_MACRO = 8,
+ DW_SECT_MAX = 8
+};
+
+/* Codes for the debug sections in a dwarf package (.dwp) file.
+ (From the official DWARF v5 spec.
+ See http://dwarfstd.org/doc/DWARF5.pdf, section 7.3.5). */
+enum dwarf_sect_v5
+{
+ DW_SECT_INFO_V5 = 1,
+ DW_SECT_RESERVED_V5 = 2,
+ DW_SECT_ABBREV_V5 = 3,
+ DW_SECT_LINE_V5 = 4,
+ DW_SECT_LOCLISTS_V5 = 5,
+ DW_SECT_STR_OFFSETS_V5 = 6,
+ DW_SECT_MACRO_V5 = 7,
+ DW_SECT_RNGLISTS_V5 = 8,
+ DW_SECT_MAX_V5 = 8
+};
#ifdef __cplusplus
extern "C" {