diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-07 08:00:16 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-07-29 20:54:48 -0400 |
commit | 2ab317fb8290ea96bdb446957d2e221634fd25c8 (patch) | |
tree | 04ece983bc78036d9120d35445026eda748de780 /gdb/psymtab.c | |
parent | 017772c826f15704c5326ac35daf00f223daff5c (diff) | |
download | gdb-2ab317fb8290ea96bdb446957d2e221634fd25c8.zip gdb-2ab317fb8290ea96bdb446957d2e221634fd25c8.tar.gz gdb-2ab317fb8290ea96bdb446957d2e221634fd25c8.tar.bz2 |
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
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index d16c3bb..012073d 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -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); } } |