aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-09-13 19:27:01 +0000
committerPedro Alves <palves@redhat.com>2011-09-13 19:27:01 +0000
commitc65b3e0d43b7b64febc4a1b7192e13f7be3a94fa (patch)
treeec3f3b1125e7695cf506dce2bef174ada4fbe796 /gdb/inferior.h
parenta1398e0c5690d181307a819fbe9cc4e08e518fbc (diff)
downloadfsf-binutils-gdb-c65b3e0d43b7b64febc4a1b7192e13f7be3a94fa.zip
fsf-binutils-gdb-c65b3e0d43b7b64febc4a1b7192e13f7be3a94fa.tar.gz
fsf-binutils-gdb-c65b3e0d43b7b64febc4a1b7192e13f7be3a94fa.tar.bz2
2011-09-13 Pedro Alves <pedro@codesourcery.com>
* 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.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index cf747a6..0815b65 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