diff options
author | midipix <writeonce@midipix.org> | 2019-09-08 01:12:41 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-09-08 01:49:33 +0000 |
commit | 0bbb08d03266bbeeadbf761b7645be3a7dbffc65 (patch) | |
tree | 0dea23b7100ae277d3d18df370c251c542b3961a /overlay/mgdb/gdb | |
parent | 9cec53215400edf7c9131d4607b73f828fcb79df (diff) | |
download | chainport-0bbb08d03266bbeeadbf761b7645be3a7dbffc65.tar.bz2 chainport-0bbb08d03266bbeeadbf761b7645be3a7dbffc65.tar.xz |
mgdb: winnt_prepare(): update inferior_ptid with current pid & tid.
Diffstat (limited to 'overlay/mgdb/gdb')
-rw-r--r-- | overlay/mgdb/gdb/winnt-nat.c | 3 |
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: |