diff options
author | Doug Evans <dje@google.com> | 2012-06-26 20:14:01 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-06-26 20:14:01 +0000 |
commit | 28bc675483dc702ff5bc2ccc9931d9db1f0e8b09 (patch) | |
tree | aea46ac26a46e16884c988094ffbd541c35eae42 /gdb/symtab.c | |
parent | 5b71ff8e2a48fbf09c364cb747285a772bd33335 (diff) | |
download | gdb-28bc675483dc702ff5bc2ccc9931d9db1f0e8b09.tar.gz |
* 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/symtab.c')
-rw-r--r-- | gdb/symtab.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 215c53d7e7c..ee37f3075c3 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -109,6 +109,9 @@ void _initialize_symtab (void); /* */ +/* When non-zero, print debugging messages related to symtab creation. */ +int symtab_create_debug = 0; + /* Non-zero if a file may be known by two different basenames. This is the uncommon case, and significantly slows down gdb. Default set to "off" to not slow down the common case. */ @@ -5014,5 +5017,13 @@ one base name, and gdb will do file name comparisons more efficiently."), NULL, NULL, &setlist, &showlist); + add_setshow_boolean_cmd ("symtab-create", no_class, &symtab_create_debug, + _("Set debugging of symbol table creation."), + _("Show debugging of symbol table creation."), _("\ +When enabled, debugging messages are printed when building symbol tables."), + NULL, + NULL, + &setdebuglist, &showdebuglist); + observer_attach_executable_changed (symtab_observer_executable_changed); } |