From 6c739336e5aadd6670909059fba889f50caa9cea Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 20 Apr 2016 10:17:12 -0700 Subject: [PATCH] symmisc.c (dump_symtab_1): Print owning compunit for identical blockvectors. * symmisc.c (dump_symtab_1): Print owning compunit for identical blockvectors. --- gdb/ChangeLog | 5 +++++ gdb/symmisc.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b2660dd5fff..f89f745ebf1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-04-20 Doug Evans + + * symmisc.c (dump_symtab_1): Print owning compunit for identical + blockvectors. + 2016-04-20 Yao Qi * aarch32-linux-nat.c: Include "arch/arm-linux.h". diff --git a/gdb/symmisc.c b/gdb/symmisc.c index a0652ffb4c3..d5efcfd2409 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); } } -- 2.30.2