diff options
author | Andrew Burgess <aburgess@redhat.com> | 2021-11-25 13:34:18 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2021-11-25 13:34:48 +0000 |
commit | 7719facb311657f8927c12481ccfc22fe84d5589 (patch) | |
tree | e8c16ad098d00bf74f06b6e2ddaee00cf373a297 /gdb | |
parent | 7060c28edd16a871fe1f8edaa8e49083a39b7ee5 (diff) | |
download | binutils-7719facb311657f8927c12481ccfc22fe84d5589.zip binutils-7719facb311657f8927c12481ccfc22fe84d5589.tar.gz binutils-7719facb311657f8927c12481ccfc22fe84d5589.tar.bz2 |
Revert "gdb: add assert in remote_target::wait relating to async being off"
This commit introduced a test failure in gdb.server/attach-flag.exp.
I didn't spot this failure originally as the problem is fixed by this,
as yet unpushed patch:
https://sourceware.org/pipermail/gdb-patches/2021-November/183768.html
I unfortunately didn't test each patch in the original series
independently. I'll repost this patch after the above patch has been
merged.
This reverts commit 32b1f5e8d6b8ddd3be6e471c26dd85a1dac31dda.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/remote.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index da8ed81..25a4d3c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -8309,13 +8309,9 @@ remote_target::wait (ptid_t ptid, struct target_waitstatus *status, remote_state *rs = get_remote_state (); /* Start by clearing the flag that asks for our wait method to be called, - we'll mark it again at the end if needed. If the target is not in - async mode then the async token should not be marked. */ + we'll mark it again at the end if needed. */ if (target_is_async_p ()) clear_async_event_handler (rs->remote_async_inferior_event_token); - else - gdb_assert (!async_event_handler_marked - (rs->remote_async_inferior_event_token)); ptid_t event_ptid; |