diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-12-02 12:10:10 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-12-14 10:56:47 +0000 |
commit | b1e678d920e4468cfd69a40560ee24834f6bdce4 (patch) | |
tree | ae0cbecef648906b195ee5a71f93e2aeade38f69 /gdb/symtab.h | |
parent | 9f50fe0835850645bd8ea9bb1efe1fe6c48dfb12 (diff) | |
download | gdb-b1e678d920e4468cfd69a40560ee24834f6bdce4.zip gdb-b1e678d920e4468cfd69a40560ee24834f6bdce4.tar.gz gdb-b1e678d920e4468cfd69a40560ee24834f6bdce4.tar.bz2 |
gdb: convert 'set debug symbol-lookup' to new debug printing scheme
Convert the implementation of 'set debug symbol-lookup' to the new
debug printing scheme.
In a few places I've updated the debug output to remove places where
the printed debug message included the function name, the new debug
scheme already adds that, but I haven't done all the possible updates.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 4f3e84b..6eca61a 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2625,6 +2625,18 @@ extern unsigned int symtab_create_debug; extern unsigned int symbol_lookup_debug; +/* Print a "symbol-lookup" debug statement if symbol_lookup_debug is >= 1. */ + +#define symbol_lookup_debug_printf(fmt, ...) \ + debug_prefixed_printf_cond (symbol_lookup_debug >= 1, "symbol-lookup", fmt, \ + ##__VA_ARGS__) + +/* Print a "symbol-lookup" debug statement if symbol_lookup_debug is >= 2. */ + +#define symbol_lookup_debug_printf_v(fmt, ...) \ + debug_prefixed_printf_cond (symbol_lookup_debug >= 2, "symbol-lookup", fmt, \ + ##__VA_ARGS__) + extern bool basenames_may_differ; bool compare_filenames_for_search (const char *filename, |