public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: fix use of fprintf_filtered in top.c
@ 2022-03-31 16:52 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2022-03-31 16:52 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=29d210012ab9928bf5ae9243e27f7500085984a8
commit 29d210012ab9928bf5ae9243e27f7500085984a8
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date: Thu Mar 31 12:50:41 2022 -0400
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
Diff:
---
gdb/top.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/top.c b/gdb/top.c
index e6786118a18..ecd31456f03 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-31 16:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 16:52 [binutils-gdb] gdb: fix use of fprintf_filtered in top.c Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).