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/rust-lang.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/rust-lang.h')
-rw-r--r-- | gdb/rust-lang.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/rust-lang.h b/gdb/rust-lang.h index a1d1026..4e5f39c 100644 --- a/gdb/rust-lang.h +++ b/gdb/rust-lang.h @@ -148,14 +148,10 @@ public: { struct block_symbol result = {}; - if (symbol_lookup_debug) - { - gdb_printf (gdb_stdlog, - "rust_lookup_symbol_non_local" - " (%s, %s (scope %s), %s)\n", - name, host_address_to_string (block), - block_scope (block), domain_name (domain)); - } + symbol_lookup_debug_printf + ("rust_lookup_symbol_non_local (%s, %s (scope %s), %s)", + name, host_address_to_string (block), block_scope (block), + domain_name (domain)); /* Look up bare names in the block's scope. */ std::string scopedname; |