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 b2660dd5fffc97f1a91be3f3a43125c77eed9020..f89f745ebf1b950a9a889cff4c2200698d6463a5 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 a0652ffb4c381be3d3cc3ad57b450fa8bdfdb592..d5efcfd2409a056418c8ddd6a6784e739dc3021b 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);
     }
 }