gdb: fix use of fprintf_filtered in top.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 31 Mar 2022 16:50:41 +0000 (12:50 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 31 Mar 2022 16:52:16 +0000 (12:52 -0400)
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

gdb/top.c

index e6786118a188e092e25b2e209f36d679246801e9..ecd31456f03b4307b6677b2146061ff9dacdfd34 100644 (file)
--- 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