diff options
author | midipix <writeonce@midipix.org> | 2019-09-18 03:53:24 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-09-19 03:34:01 +0000 |
commit | 6def84a56af79ca0052fc20d36f58dd12eeb59dc (patch) | |
tree | 3f7dc8836c5804bf35f5f5ded0ab229e60d20c86 /overlay/mgdb/gdb | |
parent | 421f63ed6fdebb863795ed0a1f243c3f20655624 (diff) | |
download | chainport-6def84a56af79ca0052fc20d36f58dd12eeb59dc.tar.bz2 chainport-6def84a56af79ca0052fc20d36f58dd12eeb59dc.tar.xz |
mgdb: winnt_prepare(): perform proper clean-up upon premature termination.
Diffstat (limited to 'overlay/mgdb/gdb')
-rw-r--r-- | overlay/mgdb/gdb/winnt-nat.c | 5 |
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); } } |