* xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
authorTom Tromey <tromey@redhat.com>
Wed, 27 Jul 2011 14:45:37 +0000 (14:45 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 27 Jul 2011 14:45:37 +0000 (14:45 +0000)
entries.
* symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
* dwarf2read.c (dwarf2_elf_names): Add sentinel entry.

gdb/ChangeLog
gdb/dwarf2read.c
gdb/symfile.h
gdb/xcoffread.c

index 2e3736545f6e925ccb6bf16175ae785c6fdb44b8..336d184dcea9f181b614424b627cd92f7110a258 100644 (file)
@@ -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
index 505f5768fd76690ca55a7441a6883cb14cfe3e7f..c009aac7ff98e2b2b2cbd804eaa109c389987406 100644 (file)
@@ -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 */
index eb5beaa6739c8fbe3d2b6de50017d48d8b7e85ab..0e648d097955ba73bd0e0f4d14cbee86bf01b59e 100644 (file)
@@ -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 *,
index 0c4cbd152062f19dc6de184fe775a777ccdeefc7..d7760ee25e1e7bfb0d02ecbb7743ef34e6544f0e 100644 (file)
@@ -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
This page took 0.060386 seconds and 4 git commands to generate.