This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMIT] symmisc.c (dump_symtab_1): Print owning compunit for identical blockvectors.
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 20 Apr 2016 10:19:11 -0700
- Subject: [COMMIT] symmisc.c (dump_symtab_1): Print owning compunit for identical blockvectors.
- Authentication-results: sourceware.org; auth=none
Hi.
fyi, I committed this.
2016-04-20 Doug Evans <xdje42@gmail.com>
* symmisc.c (dump_symtab_1): Print owning compunit for identical
blockvectors.
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);
}
}