mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Change "set debug symtab-create" to take a verbosity level.
* NEWS: Mention that "set debug symtab-create" now accepts a verbosity level. * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary to set the symtab's primary flag. * jit.c (finalize_symtab): Ditto. * mdebugread.c (psymtab_to_symtab_1): Ditto. * symfile.c (allocate_symtab): Only print debugging messages for symtab_create_debug levels 2 and higher. * symtab.c (symtab_create_debug): Change type to unsigned int. (set_symtab_primary): New function. (_initialize_symtab): Change "set debug symtab-create" to a zuinteger option. * symtab.h (set_symtab_primary): Declare. (symtab_create_debug): Update decl. doc/ * gdb.texinfo (Debugging Output): Update text for "set debug symtab-create".
This commit is contained in:
@@ -1231,8 +1231,7 @@ end_symtab_from_static_block (struct block *static_block,
|
||||
/* All symtabs for the main file and the subfiles share a
|
||||
blockvector, so we need to clear primary for everything
|
||||
but the main file. */
|
||||
|
||||
symtab->primary = 0;
|
||||
set_symtab_primary (symtab, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1280,7 +1279,7 @@ end_symtab_from_static_block (struct block *static_block,
|
||||
/* Set this for the main source file. */
|
||||
if (symtab)
|
||||
{
|
||||
symtab->primary = 1;
|
||||
set_symtab_primary (symtab, 1);
|
||||
|
||||
if (symtab->blockvector)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user