summaryrefslogtreecommitdiffstats
path: root/debugger.c
diff options
context:
space:
mode:
Diffstat (limited to 'debugger.c')
-rw-r--r--debugger.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/debugger.c b/debugger.c
index 401f6dd..3902819 100644
--- a/debugger.c
+++ b/debugger.c
@@ -546,7 +546,7 @@ int dbg_free(struct thread *th) {
return -1;
}
-void dbg_sync(struct process *proc) {
+int dbg_sync(struct process *proc) {
struct thread *acted = NULL;
struct list *threads = &proc->threads;
@@ -566,6 +566,8 @@ void dbg_sync(struct process *proc) {
capture_state(proc);
resume_threads(proc);
}
+
+ return acted != NULL;
}
int dbg_intr(struct thread *th) {