From 0bbb08d03266bbeeadbf761b7645be3a7dbffc65 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 8 Sep 2019 01:12:41 +0000 Subject: mgdb: winnt_prepare(): update inferior_ptid with current pid & tid. --- overlay/mgdb/gdb/winnt-nat.c | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit v1.2.3