summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-10-10 11:54:32 -0400
committerMalfurious <m@lfurio.us>2024-04-24 13:31:08 -0400
commitbda13f10b17baf1c2543a500f09eaeccc8c2d876 (patch)
tree615e56efcd503f601c55efab71c6304e001fd811
parent574d5a2c4f07bed91d9682e4f48e655e88e37498 (diff)
downloadmisplays-bda13f10b17baf1c2543a500f09eaeccc8c2d876.tar.gz
misplays-bda13f10b17baf1c2543a500f09eaeccc8c2d876.zip
Allow termination and exec events to propagate immediately
Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--debugger.c4
1 files changed, 1 insertions, 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;