From: Yao Qi Date: Wed, 18 Jun 2014 14:03:20 +0000 (+0800) Subject: Remove any_running X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78c164b00654c7f422694035bc0e1817f90c86b5;p=binutils-gdb.git Remove any_running Function any_running isn't used. This patch is to remove it. Rebuild GDB for linux and mingw. gdb: 2014-06-19 Yao Qi * gdbthread.h (any_running): Remove the declaration. * thread.c (any_running): Remove. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 36a74be8452..ee620d0341b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-06-19 Yao Qi + + * gdbthread.h (any_running): Remove the declaration. + * thread.c (any_running): Remove. + 2014-06-19 Yao Qi * gdbthread.h (struct thread_info) : Change its type to diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index ca529831aaa..9ef74cdd686 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -363,9 +363,6 @@ extern int is_exited (ptid_t ptid); /* In the frontend's perpective, is this thread stopped? */ extern int is_stopped (ptid_t ptid); -/* In the frontend's perpective is there any thread running? */ -extern int any_running (void); - /* Marks thread PTID as executing, or not. If ptid_get_pid (PTID) is -1, marks all threads. diff --git a/gdb/thread.c b/gdb/thread.c index 532149ddc63..e25d5639bd9 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -647,18 +647,6 @@ is_running (ptid_t ptid) return is_thread_state (ptid, THREAD_RUNNING); } -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) {