forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -1251,6 +1251,13 @@ elf_symfile_read (struct objfile *objfile, int symfile_flags)
|
||||
asymbol **symbol_table = NULL, **dyn_symbol_table = NULL;
|
||||
asymbol *synthsyms;
|
||||
|
||||
if (symtab_create_debug)
|
||||
{
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
"Reading minimal symbols of objfile %s ...\n",
|
||||
objfile->name);
|
||||
}
|
||||
|
||||
init_minimal_symbol_collection ();
|
||||
back_to = make_cleanup_discard_minimal_symbols ();
|
||||
|
||||
@@ -1443,6 +1450,9 @@ elf_symfile_read (struct objfile *objfile, int symfile_flags)
|
||||
xfree (debugfile);
|
||||
}
|
||||
}
|
||||
|
||||
if (symtab_create_debug)
|
||||
fprintf_unfiltered (gdb_stdlog, "Done reading minimal symbols.\n");
|
||||
}
|
||||
|
||||
/* Callback to lazily read psymtabs. */
|
||||
|
||||
Reference in New Issue
Block a user