[COMMIT] symmisc.c (dump_symtab_1): Print owning compunit for identical blockvectors.

Message ID m3fuugryeo.fsf@sspiff.org
State New, archived
Headers

Commit Message

Doug Evans April 20, 2016, 5:19 p.m. UTC
  Hi.

fyi, I committed this.

2016-04-20  Doug Evans  <xdje42@gmail.com>

	* symmisc.c (dump_symtab_1): Print owning compunit for identical
	blockvectors.
  

Patch

diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index a0652ff..d5efcfd 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -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);
     }
 }