summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-07-27 14:45:37 +0000
committerTom Tromey <tromey@redhat.com>2011-07-27 14:45:37 +0000
commit24d3216fd914347928f66a31c5b3be7c98e90be8 (patch)
tree13fa18ab74e50457dbe6474cfd28bac94599518a
parent088b3cd0cecf4795b1b58224c03bcffeebe2dc73 (diff)
downloadppe42-binutils-24d3216fd914347928f66a31c5b3be7c98e90be8.tar.gz
ppe42-binutils-24d3216fd914347928f66a31c5b3be7c98e90be8.zip
* xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
entries. * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field. * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/dwarf2read.c3
-rw-r--r--gdb/symfile.h3
-rw-r--r--gdb/xcoffread.c4
4 files changed, 15 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2e3736545f..336d184dce 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-27 Tom Tromey <tromey@redhat.com>
+
+ * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
+ entries.
+ * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
+ * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
+
2011-07-26 Sterling Augustine <saugustine@google.com>
* cli/cli-dump.c (dump_binary_file): Change parameter type to
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 505f5768fd..c009aac7ff 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -271,7 +271,8 @@ static const struct dwarf2_debug_sections dwarf2_elf_names = {
{ ".debug_types", ".zdebug_types" },
{ ".debug_frame", ".zdebug_frame" },
{ ".eh_frame", NULL },
- { ".gdb_index", ".zgdb_index" }
+ { ".gdb_index", ".zgdb_index" },
+ 23
};
/* local data types */
diff --git a/gdb/symfile.h b/gdb/symfile.h
index eb5beaa673..0e648d0979 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -589,6 +589,9 @@ struct dwarf2_debug_sections {
struct dwarf2_section_names frame;
struct dwarf2_section_names eh_frame;
struct dwarf2_section_names gdb_index;
+ /* This field has no meaning, but exists solely to catch changes to
+ this structure which are not reflected in some instance. */
+ int sentinel;
};
extern int dwarf2_has_info (struct objfile *,
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 0c4cbd1520..d7760ee25e 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -160,12 +160,14 @@ static const struct dwarf2_debug_sections dwarf2_xcoff_names = {
{ ".dwline", NULL },
{ ".dwloc", NULL },
{ NULL, NULL }, /* debug_macinfo */
+ { NULL, NULL }, /* debug_macro */
{ ".dwstr", NULL },
{ ".dwrnges", NULL },
{ NULL, NULL }, /* debug_types */
{ ".dwframe", NULL },
{ NULL, NULL }, /* eh_frame */
- { NULL, NULL } /* gdb_index */
+ { NULL, NULL }, /* gdb_index */
+ 23
};
static void
OpenPOWER on IntegriCloud