mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
Revert gdbthread.h (any_running): Declare.
Not properly marked as 1/2. This reverts commit 1a76d598884a052dacd8feb49f1999e1a0d537f1.
This commit is contained in:
@ -1,8 +1,3 @@
|
|||||||
2014-07-10 Doug Evans <dje@google.com>
|
|
||||||
|
|
||||||
* gdbthread.h (any_running): Declare.
|
|
||||||
* thread.c (any_running): New function.
|
|
||||||
|
|
||||||
2014-07-09 Pedro Alves <palves@redhat.com>
|
2014-07-09 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* infcmd.c (attach_command_post_wait): Don't call
|
* infcmd.c (attach_command_post_wait): Don't call
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user