aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-06-26 20:14:03 +0000
committerDoug Evans <dje@google.com>2012-06-26 20:14:03 +0000
commit45cfd468960ba37fc9cf11fffc680fc7ac5d8ee8 (patch)
tree2c7da6994eecab930483601ce9fbb64d9415e5fb /gdb/minsyms.c
parent1c658ad5fac2a221b589cbe26ec84c788b24a8d1 (diff)
* NEWS: Mention new options "set debug dwarf2-read" and
"set debug symtab-create". * dwarf2read.c (dwarf2_read_debug): New static global. (dwarf2_build_psymtabs_hard): Add debugging printfs. (process_queue): Ditto. (process_full_comp_unit): Ditto. (_initialize_dwarf2_read): Add new option "set debug dwarf2-read". * elfread.c (elf_symfile_read): Add debugging printf. * minsyms.c (install_minimal_symbols): Ditto. * psymtab.c (allocate_psymtab): Ditto. * symfile.c (allocate_symtab): Ditto. * symtab.c (symtab_create_debug): New global. (_initialize_symtab): Add new option "set debug symtab-create". * symtab.h (symtab_create_debug): Declare. doc/ * gdb.texinfo (Debugging Output): Document debug options dwarf2-read and symtab-create.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index d762b2dc63..1070fff644 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -1167,6 +1167,13 @@ install_minimal_symbols (struct objfile *objfile)
if (msym_count > 0)
{
+ if (symtab_create_debug)
+ {
+ fprintf_unfiltered (gdb_stdlog,
+ "Installing %d minimal symbols of objfile %s.\n",
+ msym_count, objfile->name);
+ }
+
/* Allocate enough space in the obstack, into which we will gather the
bunches of new and existing minimal symbols, sort them, and then
compact out the duplicate entries. Once we have a final table,