]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove any_running
authorYao Qi <yao@codesourcery.com>
Wed, 18 Jun 2014 14:03:20 +0000 (22:03 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 19 Jun 2014 12:15:06 +0000 (20:15 +0800)
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/ChangeLog
gdb/gdbthread.h
gdb/thread.c

index 36a74be8452222eefb2e14f8bf3d0d4d1546d099..ee620d0341bb9bdbf6971a4e1356849e008de374 100644 (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
index ca529831aaa6a9462cd7c9ceac7d9871fc8167de..9ef74cdd686fc087dedef9104ede053a5180489d 100644 (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.
 
index 532149ddc6354ea17c7f58b666ebc74b68e5ca5b..e25d5639bd91a10658c9daa5848f98978bd34cad 100644 (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)
 {