summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;