From ed670d411821495478cf5e1a9e870cabd03b4cf6 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 26 Dec 2021 18:37:58 -0700 Subject: [PATCH] Send minsym logging to gdb_stdlog This changes minsyms.c to send logging output to gdb_stdlog. This is part of PR gdb/7233. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=7233 --- gdb/minsyms.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 5f4cf54c663..d3a5fb40e5a 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -1187,9 +1187,10 @@ minimal_symbol_reader::record_full (gdb::string_view name, return (NULL); if (symtab_create_debug >= 2) - printf_unfiltered ("Recording minsym: %-21s %18s %4d %.*s\n", - mst_str (ms_type), hex_string (address), section, - (int) name.size (), name.data ()); + fprintf_unfiltered (gdb_stdlog, + "Recording minsym: %-21s %18s %4d %.*s\n", + mst_str (ms_type), hex_string (address), section, + (int) name.size (), name.data ()); if (m_msym_bunch_index == BUNCH_SIZE) { -- 2.30.2