mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 22:23:16 +00:00
parent
e309c38263
commit
98f7227ed0
@ -1 +1 @@
|
|||||||
e87f5f493b158db5eef0add1064352076a2143bf
|
36e4e6aeceb38f3b5948599a90436d8c42ca2ac1
|
||||||
|
@ -2,17 +2,30 @@ non_stop.patch
|
|||||||
|
|
||||||
From: Christian Prochaska <christian.prochaska@genode-labs.com>
|
From: Christian Prochaska <christian.prochaska@genode-labs.com>
|
||||||
|
|
||||||
Fix a failed assertion in non-stop mode if more than
|
Fix failed assertions in non-stop mode if more than
|
||||||
one thread is initially stopped.
|
one thread is initially stopped.
|
||||||
---
|
---
|
||||||
gdb/remote.c | 2 +-
|
gdb/remote.c | 8 +++++---
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/gdb/remote.c b/gdb/remote.c
|
diff --git a/gdb/remote.c b/gdb/remote.c
|
||||||
index 218bca3..b5db0c0 100644
|
index 218bca3..5fccf69 100644
|
||||||
--- a/gdb/remote.c
|
--- a/gdb/remote.c
|
||||||
+++ b/gdb/remote.c
|
+++ b/gdb/remote.c
|
||||||
@@ -7458,7 +7458,7 @@ remote_target::queued_stop_reply (ptid_t ptid)
|
@@ -7252,8 +7252,10 @@ remote_notif_stop_can_get_pending_events (remote_target *remote,
|
||||||
|
instead. If we fetch all queued events from stub, remote stub
|
||||||
|
may exit and we have no chance to process them back in
|
||||||
|
remote_wait_ns. */
|
||||||
|
- remote_state *rs = remote->get_remote_state ();
|
||||||
|
- mark_async_event_handler (rs->remote_async_inferior_event_token);
|
||||||
|
+ if (target_is_async_p()) {
|
||||||
|
+ remote_state *rs = remote->get_remote_state ();
|
||||||
|
+ mark_async_event_handler (rs->remote_async_inferior_event_token);
|
||||||
|
+ }
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -7458,7 +7460,7 @@ remote_target::queued_stop_reply (ptid_t ptid)
|
||||||
remote_state *rs = get_remote_state ();
|
remote_state *rs = get_remote_state ();
|
||||||
struct stop_reply *r = remote_notif_remove_queued_reply (ptid);
|
struct stop_reply *r = remote_notif_remove_queued_reply (ptid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user