From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D47E3861896; Mon, 21 Sep 2020 22:08:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D47E3861896 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/26642] "maintenance set target-async off" is broken on GNU/Linux Date: Mon, 21 Sep 2020 22:08:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2020 22:08:00 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26642 --- Comment #2 from Simon Marchi --- This appears to fix it, not sure if it's correct though. diff --git a/gdb/infrun.c b/gdb/infrun.c index 6532b06ae52..f05811e5e49 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3533,6 +3533,9 @@ do_target_wait_1 (inferior *inf, ptid_t ptid, /* But if we don't find one, we'll have to wait. */ + if (!target_is_async_p ()) + options &=3D ~TARGET_WNOHANG; + if (deprecated_target_wait_hook) event_ptid =3D deprecated_target_wait_hook (ptid, status, options); else --=20 You are receiving this mail because: You are on the CC list for the bug.=