diff --git a/repos/ports/ports/gdb.hash b/repos/ports/ports/gdb.hash index 8531140294..03cb95926f 100644 --- a/repos/ports/ports/gdb.hash +++ b/repos/ports/ports/gdb.hash @@ -1 +1 @@ -e87f5f493b158db5eef0add1064352076a2143bf +36e4e6aeceb38f3b5948599a90436d8c42ca2ac1 diff --git a/repos/ports/src/noux-pkg/gdb/patches/non_stop.patch b/repos/ports/src/noux-pkg/gdb/patches/non_stop.patch index 7ffca66c6a..37b215f26f 100644 --- a/repos/ports/src/noux-pkg/gdb/patches/non_stop.patch +++ b/repos/ports/src/noux-pkg/gdb/patches/non_stop.patch @@ -2,17 +2,30 @@ non_stop.patch From: Christian Prochaska -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. --- - gdb/remote.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + gdb/remote.c | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c -index 218bca3..b5db0c0 100644 +index 218bca3..5fccf69 100644 --- a/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 (); struct stop_reply *r = remote_notif_remove_queued_reply (ptid);