Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH OBV] Remove any_running
@ 2014-06-19  5:52 Yao Qi
  2014-07-10 18:18 ` Doug Evans
  0 siblings, 1 reply; 6+ messages in thread
From: Yao Qi @ 2014-06-19  5:52 UTC (permalink / raw)
  To: gdb-patches

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.
---
 gdb/gdbthread.h |  3 ---
 gdb/thread.c    | 12 ------------
 2 files changed, 15 deletions(-)

diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 1f10469..689fe9e 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -361,9 +361,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 7bc5271..0c40b80 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;
-- 
1.9.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-14 19:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-19  5:52 [PATCH OBV] Remove any_running Yao Qi
2014-07-10 18:18 ` Doug Evans
2014-07-10 19:14   ` Tom Tromey
2014-07-10 19:21     ` Doug Evans
2014-07-10 19:35       ` Tom Tromey
2014-07-14 19:13         ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox