From 7c9058aae541b00bdd726fce6a1876f33ab00aae Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 2 Oct 2019 11:55:23 +0000 Subject: mgdb: winnt_resume_one(): always respond with __DBG_RESPONSE_CONTINUE. --- overlay/mgdb/gdb/winnt-nat.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c index de2cf69..5eae814 100644 --- a/overlay/mgdb/gdb/winnt-nat.c +++ b/overlay/mgdb/gdb/winnt-nat.c @@ -1066,7 +1066,6 @@ static void winnt_resume_one(ptid_t ptid, int step, enum gdb_signal sig) struct winnt_process * process; struct winnt_thread * thread; mcontext_t * tctx; - int response; if ((tid = ptid.tid) <= 0) if ((process = winnt_process_record(ptid.pid))) @@ -1098,21 +1097,11 @@ static void winnt_resume_one(ptid_t ptid, int step, enum gdb_signal sig) __dbg_regs_store(process->pfd,tid,tctx); if (tid == process->event.systid) { - switch (process->event.evttype) { - case __DBG_STATE_EXCEPTION: - response = __DBG_RESPONSE_EXCEPTION_NOT_HANDLED; - break; - - default: - response = __DBG_RESPONSE_CONTINUE; - break; - } - - process->event.eresponse = response; - while (__dbg_resume_thread(process->pfd,tid) > 1) (void)0; + process->event.eresponse = __DBG_RESPONSE_CONTINUE; + __dbg_event_respond( process->pfd, &process->event); -- cgit v1.2.3