mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 08:54:15 +08:00
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:
parent
f6e29b6ec0
commit
78c164b006
@ -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>
|
2014-06-19 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* gdbthread.h (struct thread_info) <state>: Change its type to
|
* gdbthread.h (struct thread_info) <state>: Change its type to
|
||||||
|
@ -363,9 +363,6 @@ extern int is_exited (ptid_t ptid);
|
|||||||
/* In the frontend's perpective, is this thread stopped? */
|
/* In the frontend's perpective, is this thread stopped? */
|
||||||
extern int is_stopped (ptid_t ptid);
|
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 thread PTID as executing, or not. If ptid_get_pid (PTID) is -1,
|
||||||
marks all threads.
|
marks all threads.
|
||||||
|
|
||||||
|
12
gdb/thread.c
12
gdb/thread.c
@ -647,18 +647,6 @@ is_running (ptid_t ptid)
|
|||||||
return is_thread_state (ptid, THREAD_RUNNING);
|
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
|
int
|
||||||
is_executing (ptid_t ptid)
|
is_executing (ptid_t ptid)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user