summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index 6b13336..4f40f5b 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -657,6 +657,10 @@ static void winnt_prepare (struct target_ops * t, pid_t pid, int pfd, int attach
target_terminal_ours();
return;
+ case __DBG_STATE_EXIT_PROCESS:
+ winnt_respond(pfd,event,__DBG_RESPONSE_CONTINUE);
+ winnt_mourn_inferior(t);
+
case __DBG_STATE_CREATE_PROCESS:
case __DBG_STATE_CREATE_THREAD:
case __DBG_STATE_IDLE:
@@ -664,7 +668,6 @@ static void winnt_prepare (struct target_ops * t, pid_t pid, int pfd, int attach
case __DBG_STATE_DLL_LOAD:
case __DBG_STATE_DLL_UNLOAD:
case __DBG_STATE_EXIT_THREAD:
- case __DBG_STATE_EXIT_PROCESS:
winnt_respond(pfd,event,__DBG_RESPONSE_CONTINUE);
}
}