From b8b72542b2b0a5f1bdfdd1179ba1e80fa35db563 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 13 Sep 2011 19:27:00 +0000 Subject: 2011-09-13 Pedro Alves * inferior.h (ALL_INFERIORS): New. * linux-thread-db.c (thread_db_find_new_threads_2): Remove check for a stopped thread. (thread_db_find_new_threads): Look for threads in all inferiors. --- gdb/inferior.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/inferior.h') diff --git a/gdb/inferior.h b/gdb/inferior.h index cf747a650cd..0815b65e9e1 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -615,6 +615,11 @@ extern void set_current_inferior (struct inferior *); extern struct cleanup *save_current_inferior (void); +/* Traverse all inferiors. */ + +#define ALL_INFERIORS(I) \ + for ((I) = inferior_list; (I); (I) = (I)->next) + extern struct inferior *inferior_list; /* Prune away automatically added inferiors that aren't required -- cgit v1.2.1