summaryrefslogtreecommitdiffstats
path: root/debugger.c
diff options
context:
space:
mode:
Diffstat (limited to 'debugger.c')
-rw-r--r--debugger.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/debugger.c b/debugger.c
index 878ce21..46a6a15 100644
--- a/debugger.c
+++ b/debugger.c
@@ -289,6 +289,9 @@ struct process *dbg_attach(pid_t pid, int child) {
int dbg_detach(struct process *proc) {
interrupt_all_threads(proc);
+ dbg_realcont(proc->threads.head);
+ usleep(100000);
+ interrupt_all_threads(proc);
uninstall_breakpoints(proc->threads.head);
free_breakpoints(proc);