Function any_running isn't used. This patch is to remove it.
Rebuild GDB for linux and mingw.
gdb:
2014-06-19 Yao Qi <yao@codesourcery.com>
* gdbthread.h (any_running): Remove the declaration.
* thread.c (any_running): Remove.
+2014-06-19 Yao Qi <yao@codesourcery.com>
+
+ * gdbthread.h (any_running): Remove the declaration.
+ * thread.c (any_running): Remove.
+
2014-06-19 Yao Qi <yao@codesourcery.com>
* gdbthread.h (struct thread_info) <state>: Change its type to
/* 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.
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)
{