aboutsummaryrefslogtreecommitdiff
path: root/elfcpp
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2013-03-01 22:45:56 +0000
committerCary Coutant <ccoutant@google.com>2013-03-01 22:45:56 +0000
commit69e2f9c4dcf6b15f501ba0fb81be7ea1ae3c7fc7 (patch)
tree56e96c397c9a2ee5ef5f1f3067088fd5ed86be0a /elfcpp
parentc4be516571a442fabfd4cdb45e0d2d7b40cd1ca9 (diff)
downloadgdb-69e2f9c4dcf6b15f501ba0fb81be7ea1ae3c7fc7.zip
gdb-69e2f9c4dcf6b15f501ba0fb81be7ea1ae3c7fc7.tar.gz
gdb-69e2f9c4dcf6b15f501ba0fb81be7ea1ae3c7fc7.tar.bz2
elfcpp/
* dwarf.h (enum DW_LANG): Adjust spacing for consistency. (enum DW_SECT): New enum type.
Diffstat (limited to 'elfcpp')
-rw-r--r--elfcpp/ChangeLog5
-rw-r--r--elfcpp/dwarf.h92
2 files changed, 59 insertions, 38 deletions
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog
index 4e2cb99..41897fb 100644
--- a/elfcpp/ChangeLog
+++ b/elfcpp/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-01 Cary Coutant <ccoutant@google.com>
+
+ * dwarf.h (enum DW_LANG): Adjust spacing for consistency.
+ (enum DW_SECT): New enum type.
+
2012-12-17 Nick Clifton <nickc@redhat.com>
* README: Add copyright notice.
diff --git a/elfcpp/dwarf.h b/elfcpp/dwarf.h
index 6e20bb1..de8b9ba 100644
--- a/elfcpp/dwarf.h
+++ b/elfcpp/dwarf.h
@@ -180,44 +180,60 @@ enum DW_CHILDREN
// Source language names and codes.
enum DW_LANG
- {
- DW_LANG_C89 = 0x0001,
- DW_LANG_C = 0x0002,
- DW_LANG_Ada83 = 0x0003,
- DW_LANG_C_plus_plus = 0x0004,
- DW_LANG_Cobol74 = 0x0005,
- DW_LANG_Cobol85 = 0x0006,
- DW_LANG_Fortran77 = 0x0007,
- DW_LANG_Fortran90 = 0x0008,
- DW_LANG_Pascal83 = 0x0009,
- DW_LANG_Modula2 = 0x000a,
- // DWARF 3.
- DW_LANG_Java = 0x000b,
- DW_LANG_C99 = 0x000c,
- DW_LANG_Ada95 = 0x000d,
- DW_LANG_Fortran95 = 0x000e,
- DW_LANG_PLI = 0x000f,
- DW_LANG_ObjC = 0x0010,
- DW_LANG_ObjC_plus_plus = 0x0011,
- DW_LANG_UPC = 0x0012,
- DW_LANG_D = 0x0013,
- // DWARF 4.
- DW_LANG_Python = 0x0014,
- // DWARF 5.
- DW_LANG_Go = 0x0016,
- DW_LANG_lo_user = 0x8000, // Implementation-defined range start.
- DW_LANG_hi_user = 0xffff, // Implementation-defined range start.
- // MIPS.
- DW_LANG_Mips_Assembler = 0x8001,
- // UPC.
- DW_LANG_Upc = 0x8765,
- // HP extensions.
- DW_LANG_HP_Bliss = 0x8003,
- DW_LANG_HP_Basic91 = 0x8004,
- DW_LANG_HP_Pascal91 = 0x8005,
- DW_LANG_HP_IMacro = 0x8006,
- DW_LANG_HP_Assembler = 0x8007
- };
+{
+ DW_LANG_C89 = 0x0001,
+ DW_LANG_C = 0x0002,
+ DW_LANG_Ada83 = 0x0003,
+ DW_LANG_C_plus_plus = 0x0004,
+ DW_LANG_Cobol74 = 0x0005,
+ DW_LANG_Cobol85 = 0x0006,
+ DW_LANG_Fortran77 = 0x0007,
+ DW_LANG_Fortran90 = 0x0008,
+ DW_LANG_Pascal83 = 0x0009,
+ DW_LANG_Modula2 = 0x000a,
+ // DWARF 3.
+ DW_LANG_Java = 0x000b,
+ DW_LANG_C99 = 0x000c,
+ DW_LANG_Ada95 = 0x000d,
+ DW_LANG_Fortran95 = 0x000e,
+ DW_LANG_PLI = 0x000f,
+ DW_LANG_ObjC = 0x0010,
+ DW_LANG_ObjC_plus_plus = 0x0011,
+ DW_LANG_UPC = 0x0012,
+ DW_LANG_D = 0x0013,
+ // DWARF 4.
+ DW_LANG_Python = 0x0014,
+ // DWARF 5.
+ DW_LANG_Go = 0x0016,
+ DW_LANG_lo_user = 0x8000, // Implementation-defined range start.
+ DW_LANG_hi_user = 0xffff, // Implementation-defined range start.
+ // MIPS.
+ DW_LANG_Mips_Assembler = 0x8001,
+ // UPC.
+ DW_LANG_Upc = 0x8765,
+ // HP extensions.
+ DW_LANG_HP_Bliss = 0x8003,
+ DW_LANG_HP_Basic91 = 0x8004,
+ DW_LANG_HP_Pascal91 = 0x8005,
+ DW_LANG_HP_IMacro = 0x8006,
+ DW_LANG_HP_Assembler = 0x8007
+};
+
+// DWARF section identifiers used in the package format.
+// Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFissionDWP.
+
+enum DW_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 = DW_SECT_MACRO,
+};
} // End namespace elfcpp.