summaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 571d26a1f84..42f6f6a9f8e 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -513,6 +513,12 @@ extern struct cleanup *save_current_inferior (void);
#define ALL_INFERIORS(I) \
for ((I) = inferior_list; (I); (I) = (I)->next)
+/* Traverse all non-exited inferiors. */
+
+#define ALL_NON_EXITED_INFERIORS(I) \
+ ALL_INFERIORS (I) \
+ if ((I)->pid != 0)
+
extern struct inferior *inferior_list;
/* Prune away automatically added inferiors that aren't required