diff options
author | midipix <writeonce@midipix.org> | 2019-10-02 11:55:23 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-02 12:05:03 +0000 |
commit | 7c9058aae541b00bdd726fce6a1876f33ab00aae (patch) | |
tree | e2a7ea07135555fc5eb87e79b6a1822a19434437 | |
parent | bcac21a9656d010f7a10846361fc22fdb083b3f1 (diff) | |
download | chainport-7c9058aae541b00bdd726fce6a1876f33ab00aae.tar.bz2 chainport-7c9058aae541b00bdd726fce6a1876f33ab00aae.tar.xz |
mgdb: winnt_resume_one(): always respond with __DBG_RESPONSE_CONTINUE.
-rw-r--r-- | overlay/mgdb/gdb/winnt-nat.c | 15 |
1 files 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); |