aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-03-31 12:50:41 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-03-31 12:52:16 -0400
commit29d210012ab9928bf5ae9243e27f7500085984a8 (patch)
treea96899dbabdcf9a47a7d210dfd14b668d7a8717b /gdb/top.c
parent025f768ffc3aeb5561bb60a9c8f3841faa53bd6f (diff)
downloadgdb-29d210012ab9928bf5ae9243e27f7500085984a8.zip
gdb-29d210012ab9928bf5ae9243e27f7500085984a8.tar.gz
gdb-29d210012ab9928bf5ae9243e27f7500085984a8.tar.bz2
gdb: fix use of fprintf_filtered in top.c
A race condition in how patches were pushed causes this build failure: CXX top.o /home/simark/src/binutils-gdb/gdb/top.c: In function ‘void print_gdb_configuration(ui_file*)’: /home/simark/src/binutils-gdb/gdb/top.c:1622:3: error: ‘fprintf_filtered’ was not declared in this scope; did you mean ‘printf_unfiltered’? 1622 | fprintf_filtered (stream, _("\ | ^~~~~~~~~~~~~~~~ fprintf_filtered has been removed, gdb_printf must be used now. Fix this. Change-Id: I6a172ba0d53dab2e7cc43ed0ed2696c82925245b
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index e678611..ecd3145 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1619,11 +1619,11 @@ This GDB was configured as follows:\n\
#endif
#if CXX_STD_THREAD
- fprintf_filtered (stream, _("\
+ gdb_printf (stream, _("\
--enable-threading\n\
"));
#else
- fprintf_filtered (stream, _("\
+ gdb_print (stream, _("\
--disable-threading\n\
"));
#endif