diff options
author | Yao Qi <yao@codesourcery.com> | 2014-06-18 22:03:20 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-06-19 20:15:06 +0800 |
commit | 78c164b00654c7f422694035bc0e1817f90c86b5 (patch) | |
tree | 5ddf9b79427eff8746e7a16e72403666c921a88f /gdb | |
parent | f6e29b6ec0a4fd410ddaaddacf045c4cb4e890f2 (diff) | |
download | gdb-78c164b00654c7f422694035bc0e1817f90c86b5.zip gdb-78c164b00654c7f422694035bc0e1817f90c86b5.tar.gz gdb-78c164b00654c7f422694035bc0e1817f90c86b5.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbthread.h | 3 | ||||
-rw-r--r-- | gdb/thread.c | 12 |
3 files changed, 5 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 36a74be..ee620d0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 'enum thread_state'. Update comments. diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index ca52983..9ef74cd 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 532149d..e25d563 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -648,18 +648,6 @@ is_running (ptid_t ptid) } 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) { struct thread_info *tp; |