dwarf2read.c (peek_die_abbrev): Improve error message text.
authorDoug Evans <dje@google.com>
Wed, 3 Dec 2014 00:22:18 +0000 (16:22 -0800)
committerDoug Evans <dje@google.com>
Wed, 3 Dec 2014 00:22:18 +0000 (16:22 -0800)
gdb/ChangeLog:

* dwarf2read.c (peek_die_abbrev): Improve error message text.

gdb/ChangeLog
gdb/dwarf2read.c

index 6182358b092e360ba8138fa4bde2058fbbd4480a..c71c3011850a809b5c51c0dc0d728f66a31b392e 100644 (file)
@@ -1,3 +1,7 @@
+2014-12-02  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (peek_die_abbrev): Improve error message text.
+
 2014-12-02  Doug Evans  <dje@google.com>
 
        * valops.c (do_search_struct_field): Remove remnant of Chill support.
index 36cbbd90b7ff66fcfc24919448cba8c06be93bc2..5526db35b9cf471dca729d31e9341bda7188b2fb 100644 (file)
@@ -7130,8 +7130,10 @@ peek_die_abbrev (const gdb_byte *info_ptr, unsigned int *bytes_read,
   abbrev = abbrev_table_lookup_abbrev (cu->abbrev_table, abbrev_number);
   if (!abbrev)
     {
-      error (_("Dwarf Error: Could not find abbrev number %d [in module %s]"),
-            abbrev_number, bfd_get_filename (abfd));
+      error (_("Dwarf Error: Could not find abbrev number %d in %s"
+              " at offset 0x%x [in module %s]"),
+            abbrev_number, cu->per_cu->is_debug_types ? "TU" : "CU",
+            cu->header.offset.sect_off, bfd_get_filename (abfd));
     }
 
   return abbrev;