gdb/
[deliverable/binutils-gdb.git] / gdb / gdbthread.h
index 7cd66b603e77a5124bcac3ef972f1c346566cbfe..02505559d6c3c43c4d5fd087ee645da7448462d7 100644 (file)
@@ -301,6 +301,11 @@ void thread_change_ptid (ptid_t old_ptid, ptid_t new_ptid);
 typedef int (*thread_callback_func) (struct thread_info *, void *);
 extern struct thread_info *iterate_over_threads (thread_callback_func, void *);
 
+/* Traverse all threads.  */
+
+#define ALL_THREADS(T)                         \
+  for (T = thread_list; T; T = T->next)
+
 extern int thread_count (void);
 
 /* Switch from one thread to another.  */
@@ -391,4 +396,6 @@ extern struct thread_info* inferior_thread (void);
 
 extern void update_thread_list (void);
 
+extern struct thread_info *thread_list;
+
 #endif /* GDBTHREAD_H */
This page took 0.024656 seconds and 4 git commands to generate.