From: Tom Tromey Date: Mon, 27 Dec 2021 01:37:58 +0000 (-0700) Subject: Send minsym logging to gdb_stdlog X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed670d411821495478cf5e1a9e870cabd03b4cf6;p=binutils-gdb.git 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 --- 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) {