symmisc.c (dump_symtab_1): Print owning compunit for identical blockvectors.
authorDoug Evans <xdje42@gmail.com>
Wed, 20 Apr 2016 17:17:12 +0000 (10:17 -0700)
committerDoug Evans <xdje42@gmail.com>
Wed, 20 Apr 2016 17:17:12 +0000 (10:17 -0700)
* symmisc.c (dump_symtab_1): Print owning compunit for identical
blockvectors.

gdb/ChangeLog
gdb/symmisc.c

index b2660dd..f89f745 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-20  Doug Evans  <xdje42@gmail.com>
+
+       * symmisc.c (dump_symtab_1): Print owning compunit for identical
+       blockvectors.
+
 2016-04-20  Yao Qi  <yao.qi@linaro.org>
 
        * aarch32-linux-nat.c: Include "arch/arm-linux.h".
index a0652ff..d5efcfd 100644 (file)
@@ -377,7 +377,12 @@ dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile)
     }
   else
     {
-      fprintf_filtered (outfile, "\nBlockvector same as previous symtab\n\n");
+      const char *compunit_filename
+       = symtab_to_filename_for_display (COMPUNIT_FILETABS (SYMTAB_COMPUNIT (symtab)));
+
+      fprintf_filtered (outfile,
+                       "\nBlockvector same as owning compunit: %s\n\n",
+                       compunit_filename);
     }
 }