diff options
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index e25d563..532149d 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -648,6 +648,18 @@ is_running (ptid_t ptid) } int +any_running (void) +{ + struct thread_info *tp; + + for (tp = thread_list; tp; tp = tp->next) + if (tp->state == THREAD_RUNNING) + return 1; + + return 0; +} + +int is_executing (ptid_t ptid) { struct thread_info *tp; |