From bda13f10b17baf1c2543a500f09eaeccc8c2d876 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Tue, 10 Oct 2023 11:54:32 -0400 Subject: Allow termination and exec events to propagate immediately Signed-off-by: Malfurious --- debugger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/debugger.c b/debugger.c index 9a4d142..fdf74f9 100644 --- a/debugger.c +++ b/debugger.c @@ -286,8 +286,6 @@ static void resume_threads(struct process *proc) { static int wait_thread(struct thread *th) { if (th->id <= 0) { return -1; - } else if (th->stopped) { - return 1; } int status; @@ -536,7 +534,7 @@ void dbg_sync(struct process *proc) { struct list *threads = &proc->threads; for (struct thread *th = threads->head; th != threads->end; th = th->next) { if (th->id > 0) { - if (!th->stopped && wait_thread(th)) { + if (/*!th->stopped &&*/ wait_thread(th)) { acted = th; } else if (th->stopped && th->doing) { acted = th; -- cgit v1.2.3