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/symtab.h | |
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/symtab.h')
-rw-r--r-- | gdb/symtab.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index ac902a4..4bc8664 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2601,6 +2601,17 @@ void fixup_section (struct general_symbol_info *ginfo, extern unsigned int symtab_create_debug; +/* Print a "symtab-create" debug statement. */ + +#define symtab_create_debug_printf(fmt, ...) \ + debug_prefixed_printf_cond (symtab_create_debug >= 1, "symtab-create", fmt, ##__VA_ARGS__) + +/* Print a verbose "symtab-create" debug statement, only if + "set debug symtab-create" is set to 2 or higher. */ + +#define symtab_create_debug_printf_v(fmt, ...) \ + debug_prefixed_printf_cond (symtab_create_debug >= 2, "symtab-create", fmt, ##__VA_ARGS__) + extern unsigned int symbol_lookup_debug; extern bool basenames_may_differ; |