diff options
-rw-r--r-- | gdb/windows-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index afc01ee..5ee8573 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -3061,6 +3061,8 @@ windows_nat_target::continue_status_for_event_detaching void windows_nat_target::detach (inferior *inf, int from_tty) { + target_announce_detach (from_tty); + DWORD continue_status = DBG_CONTINUE; /* For any thread the core hasn't resumed, call prepare_resume with @@ -3176,8 +3178,6 @@ windows_nat_target::detach (inferior *inf, int from_tty) throw_winerror_with_name (msg.c_str (), *err); } - target_announce_detach (from_tty); - x86_cleanup_dregs (); switch_to_no_thread (); detach_inferior (inf); |