summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index 4786f31..d1e6a00 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -293,6 +293,9 @@ static void winnt_prepare (struct target_ops * t, pid_t pid, int pfd, int attach
if (__dbg_resume_thread(pfd,event.systid) < 0)
winnt_perror("failed to resume first thread",pid);
+ inferior_ptid.pid = event.syspid;
+ inferior_ptid.tid = event.systid;
+
switch (event.evttype) {
case __DBG_STATE_EXCEPTION:
case __DBG_STATE_BREAKPOINT: