From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id 05D913857830; Thu, 31 Mar 2022 16:52:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05D913857830 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: fix use of fprintf_filtered in top.c X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: 025f768ffc3aeb5561bb60a9c8f3841faa53bd6f X-Git-Newrev: 29d210012ab9928bf5ae9243e27f7500085984a8 Message-Id: <20220331165246.05D913857830@sourceware.org> Date: Thu, 31 Mar 2022 16:52:46 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2022 16:52:46 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D29d210012ab9= 928bf5ae9243e27f7500085984a8 commit 29d210012ab9928bf5ae9243e27f7500085984a8 Author: Simon Marchi Date: Thu Mar 31 12:50:41 2022 -0400 gdb: fix use of fprintf_filtered in top.c =20 A race condition in how patches were pushed causes this build failure: =20 CXX top.o /home/simark/src/binutils-gdb/gdb/top.c: In function =E2=80=98void = print_gdb_configuration(ui_file*)=E2=80=99: /home/simark/src/binutils-gdb/gdb/top.c:1622:3: error: =E2=80=98fpr= intf_filtered=E2=80=99 was not declared in this scope; did you mean =E2=80= =98printf_unfiltered=E2=80=99? 1622 | fprintf_filtered (stream, _("\ | ^~~~~~~~~~~~~~~~ =20 fprintf_filtered has been removed, gdb_printf must be used now. Fix this. =20 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 =20 #if CXX_STD_THREAD - fprintf_filtered (stream, _("\ + gdb_printf (stream, _("\ --enable-threading\n\ ")); #else - fprintf_filtered (stream, _("\ + gdb_print (stream, _("\ --disable-threading\n\ ")); #endif