forked from Imagelibrary/binutils-gdb
gdb: introduce symtab_create_debug_printf
Introduce symtab_create_debug_printf and symtab_create_debug_printf_v, to print the debug messages enabled by "set debug symtab-create". Change-Id: I442500903f72d4635c2dd9eaef770111f317dc04
This commit is contained in:
@@ -1314,7 +1314,7 @@ partial_symtab::partial_symtab (const char *filename_,
|
||||
|
||||
filename = objfile_per_bfd->intern (filename_);
|
||||
|
||||
if (symtab_create_debug)
|
||||
if (symtab_create_debug >= 1)
|
||||
{
|
||||
/* Be a bit clever with debugging messages, and don't print objfile
|
||||
every time, only when it changes. */
|
||||
@@ -1325,13 +1325,13 @@ partial_symtab::partial_symtab (const char *filename_,
|
||||
if (last_bfd_name.empty () || last_bfd_name != this_bfd_name)
|
||||
{
|
||||
last_bfd_name = this_bfd_name;
|
||||
gdb_printf (gdb_stdlog,
|
||||
"Creating one or more psymtabs for %s ...\n",
|
||||
this_bfd_name);
|
||||
|
||||
symtab_create_debug_printf ("creating one or more psymtabs for %s",
|
||||
this_bfd_name);
|
||||
}
|
||||
gdb_printf (gdb_stdlog,
|
||||
"Created psymtab %s for module %s.\n",
|
||||
host_address_to_string (this), filename);
|
||||
|
||||
symtab_create_debug_printf ("created psymtab %s for module %s",
|
||||
host_address_to_string (this), filename);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user