diff options
-rw-r--r-- | overlay/mgdb/gdb/winnt-nat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c index 90ae1a7..55c7569 100644 --- a/overlay/mgdb/gdb/winnt-nat.c +++ b/overlay/mgdb/gdb/winnt-nat.c @@ -827,9 +827,10 @@ static struct __dbg_event * winnt_wait_event(ptid_t ptid) memcpy(&pidinfo->event,&event,sizeof(event)); - if ((thread = winnt_get_thread(pidinfo,event.systid))) { + for (thread=pidinfo->threads; thread; thread=thread->next) { __dbg_regs_fetch( - pidinfo->pfd,event.systid, + pidinfo->pfd, + thread->tid, &thread->regctx); winnt_set_thread_context_state( |