From b1e678d920e4468cfd69a40560ee24834f6bdce4 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Fri, 2 Dec 2022 12:10:10 +0000 Subject: 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. --- gdb/rust-lang.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'gdb/rust-lang.h') 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; -- cgit v1.1