public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/27710] remote-notif.c:113: internal-error: void remote_async_get_pending_events_handler(gdb_client_data): Assertion `target_is_non_stop_p ()' failed
Date: Thu, 15 Apr 2021 07:34:23 +0000 [thread overview]
Message-ID: <bug-27710-4717-8GR2zkJD13@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27710-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=27710
--- Comment #18 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 13369
--> https://sourceware.org/bugzilla/attachment.cgi?id=13369&action=edit
Tentative patch
(In reply to Simon Marchi from comment #15)
> So adding a call to switch_to_target_no_thread should make it work (it just
> makes an arbitrary inferior of the target the current one).
>
This patch implements that approach. I've done a build and reg-test on
x86_64-linux. Also I've done a 1000 iteration run of the test-case and the
assert doesn't trigger anymore.
It's rather unfortunate that we need to move remote_target to remote.h for the
dynamic cast. This more simple solution at least compiles without that change:
...
+ scoped_restore_current_thread restore_thread;
+ process_stratum_target *remote
+ = (process_stratum_target *) notif_state->remote;
+ switch_to_target_no_thread (remote);
...
but I'm not sure how legal that is given that here remote_target is an
incomplete class.
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2021-04-15 7:34 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 13:39 [Bug gdb/27710] New: " vries at gcc dot gnu.org
2021-04-08 13:41 ` [Bug gdb/27710] " vries at gcc dot gnu.org
2021-04-08 13:44 ` vries at gcc dot gnu.org
2021-04-08 14:02 ` simark at simark dot ca
2021-04-14 8:29 ` vries at gcc dot gnu.org
2021-04-14 8:57 ` vries at gcc dot gnu.org
2021-04-14 9:59 ` vries at gcc dot gnu.org
2021-04-14 10:12 ` vries at gcc dot gnu.org
2021-04-14 12:51 ` simark at simark dot ca
2021-04-14 12:56 ` vries at gcc dot gnu.org
2021-04-14 12:58 ` simark at simark dot ca
2021-04-14 13:13 ` simark at simark dot ca
2021-04-14 15:06 ` vries at gcc dot gnu.org
2021-04-14 15:09 ` vries at gcc dot gnu.org
2021-04-14 15:34 ` vries at gcc dot gnu.org
2021-04-14 17:03 ` simark at simark dot ca
2021-04-14 17:19 ` cbiesinger at google dot com
2021-04-14 17:20 ` simark at simark dot ca
2021-04-15 7:34 ` vries at gcc dot gnu.org [this message]
2021-04-15 17:58 ` simark at simark dot ca
2021-04-16 8:03 ` [Bug remote/27710] " vries at gcc dot gnu.org
2021-04-22 8:53 ` vries at gcc dot gnu.org
2021-04-22 15:01 ` cvs-commit at gcc dot gnu.org
2021-04-22 15:01 ` vries 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-27710-4717-8GR2zkJD13@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: link
Be 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).