This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] symmisc.c (dump_symtab_1): Print owning compunit for identical blockvectors.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6c739336e5aadd6670909059fba889f50caa9cea

commit 6c739336e5aadd6670909059fba889f50caa9cea
Author: Doug Evans <xdje42@gmail.com>
Date:   Wed Apr 20 10:17:12 2016 -0700

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

Diff:
---
 gdb/ChangeLog | 5 +++++
 gdb/symmisc.c | 7 ++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b2660dd..f89f745 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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".
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);
     }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]