From 189a9bbf63c90cf59150ee395c60350f781e394f Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 17 Jul 2024 11:07:32 -0400 Subject: [PATCH] strace: Resume target threads with the debugger API not resume_thread(). This way, the thread will be resumed only after the kernel has finished processing our debugger change requests written to the same port. --- src/bin/debug/strace/strace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/debug/strace/strace.cpp b/src/bin/debug/strace/strace.cpp index 1c5ac6b440..3928ae83de 100644 --- a/src/bin/debug/strace/strace.cpp +++ b/src/bin/debug/strace/strace.cpp @@ -815,8 +815,8 @@ main(int argc, const char *const *argv) exit(1); } - // resume the target thread to be sure, it's running - resume_thread(threadID); + // resume the target thread to be sure it's running + continue_thread(nubPort, threadID); } thread_id currentThreadID = -1;