summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-09-08 01:15:33 +0000
committermidipix <writeonce@midipix.org>2019-09-08 01:49:34 +0000
commit2532986d5883791a34f9c09879ee68b080503c4f (patch)
tree3cbf4d59f0cc619f19d0d52ebc0780ede595dde1
parent0bbb08d03266bbeeadbf761b7645be3a7dbffc65 (diff)
downloadchainport-2532986d5883791a34f9c09879ee68b080503c4f.tar.bz2
chainport-2532986d5883791a34f9c09879ee68b080503c4f.tar.xz
mgdb: winnt_wait(): always use the system process and thread identifiers.
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index d1e6a00..a2c2006 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -415,10 +415,7 @@ static ptid_t winnt_wait(
if (__dbg_event_query_one(pfd->fd,&dbgevent) < 0)
return null_ptid;
- return ptid_build(
- dbgevent.cpid ? dbgevent.cpid : dbgevent.syspid,
- 0,
- dbgevent.ctid ? dbgevent.ctid : dbgevent.systid);
+ return ptid_build(dbgevent.syspid,0,dbgevent.systid);
}
static void winnt_resume (