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  <yao@codesourcery.com>

	* gdbthread.h (any_running): Remove the declaration.
	* thread.c (any_running): Remove.
This commit is contained in:
Yao Qi 2014-06-18 22:03:20 +08:00
parent f6e29b6ec0
commit 78c164b006
3 changed files with 5 additions and 15 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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.

View File

@ -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)
{