public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [PR gdb/30630] Fix internal-error in remote_target::wait
@ 2023-10-03 17:26 Mikhail Terekhov
  2023-10-03 19:02 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: Mikhail Terekhov @ 2023-10-03 17:26 UTC (permalink / raw)
  To: gdb-patches; +Cc: Mikhail Terekhov

From: Mikhail Terekhov <mikhail.terekhov@emc.com>

[PR gdb/30630] Assert inroduced in 32b1f5e8d6b8ddd3be6e471c26dd85a1dac31dda
causes gdb to fail when connecting to remote server in async
nonstop mode. This fix replaces call to target_can_async_p()
by target_is_async_p() in remote_target::queued_stop_reply()
as suggested by Christian Prochaska in comment6 to this PR.
---
 gdb/remote.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/remote.c b/gdb/remote.c
index 9bb4f1de598..a3221b6b5d1 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -7625,7 +7625,7 @@ remote_target::queued_stop_reply (ptid_t ptid)
   remote_state *rs = get_remote_state ();
   struct stop_reply *r = remote_notif_remove_queued_reply (ptid);
 
-  if (!rs->stop_reply_queue.empty () && target_can_async_p ())
+  if (!rs->stop_reply_queue.empty () && target_is_async_p ())
     {
       /* There's still at least an event left.  */
       mark_async_event_handler (rs->remote_async_inferior_event_token);
-- 
2.35.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-03 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 17:26 [PATCH] [PR gdb/30630] Fix internal-error in remote_target::wait Mikhail Terekhov
2023-10-03 19:02 ` 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).