summaryrefslogtreecommitdiff
path: root/overlay/mgdb/gdb/winnt-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/mgdb/gdb/winnt-nat.c')
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index e8444f8..b0341f4 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -841,13 +841,18 @@ static ptid_t winnt_wait(
winnt_respond(pfd,event,__DBG_RESPONSE_CONTINUE);
break;
+ case __DBG_STATE_EXIT_PROCESS:
+ waitstatus->kind = TARGET_WAITKIND_EXITED;
+ waitstatus->value.integer = *event->process_exit_code;
+ winnt_respond(pfd,event,__DBG_RESPONSE_CONTINUE);
+ break;
+
case __DBG_STATE_CREATE_PROCESS:
case __DBG_STATE_CREATE_THREAD:
case __DBG_STATE_IDLE:
case __DBG_STATE_REPLY_PENDING:
case __DBG_STATE_DLL_LOAD:
case __DBG_STATE_DLL_UNLOAD:
- case __DBG_STATE_EXIT_PROCESS:
waitstatus->kind = TARGET_WAITKIND_SPURIOUS;
waitstatus->value.integer = 0;
break;