public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org> 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 [thread overview] Message-ID: <bug-26642-4717-A13ohIdF7A@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-26642-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=26642 --- Comment #2 from Simon Marchi <simark at simark dot ca> --- 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 &= ~TARGET_WNOHANG; + if (deprecated_target_wait_hook) event_ptid = deprecated_target_wait_hook (ptid, status, options); else -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2020-09-21 22:08 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-09-21 19:52 [Bug gdb/26642] New: " simark at simark dot ca 2020-09-21 19:52 ` [Bug gdb/26642] " simark at simark dot ca 2020-09-21 22:03 ` simark at simark dot ca 2020-09-21 22:08 ` simark at simark dot ca [this message] 2020-10-13 16:01 ` cvs-commit at gcc dot gnu.org 2020-10-13 16:04 ` simark at simark dot ca 2020-10-13 18:32 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-26642-4717-A13ohIdF7A@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).