gdb/
[deliverable/binutils-gdb.git] / gdb / thread.c
index 536177130c6e009cd7717dc62e3c30419b7e76d2..a7ac3c8a9ae60f21c9e821c7595489ce2956c108 100644 (file)
@@ -428,6 +428,18 @@ first_thread_of_process (int pid)
   return ret;
 }
 
+struct thread_info *
+any_thread_of_process (int pid)
+{
+  struct thread_info *tp;
+
+  for (tp = thread_list; tp; tp = tp->next)
+    if (ptid_get_pid (tp->ptid) == pid)
+      return tp;
+
+  return NULL;
+}
+
 /* Print a list of thread ids currently known, and the total number of
    threads. To be used from within catch_errors. */
 static int
This page took 0.024584 seconds and 4 git commands to generate.