From 726ed01920804bc3cce70bb01c62588945768469 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Sep 2019 21:15:25 +0000 Subject: mgdb: winnt_wait_event(): use __dbg_event_acquire() (a better match for gdb). --- overlay/mgdb/gdb/winnt-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c index a253426..9f25f4e 100644 --- a/overlay/mgdb/gdb/winnt-nat.c +++ b/overlay/mgdb/gdb/winnt-nat.c @@ -753,7 +753,7 @@ static struct __dbg_event * winnt_wait_event(ptid_t ptid) if (!pfd) return 0; - if (__dbg_event_query_one(pfd->fd,&event) < 0) + if (__dbg_event_acquire(pfd->fd,&event) < 0) return 0; if (!(pidinfo = winnt_process_record(event.syspid))) -- cgit v1.2.3