aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/linux-nat.h')
-rw-r--r--gdb/linux-nat.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h
index 6175f3a..1fa94ce 100644
--- a/gdb/linux-nat.h
+++ b/gdb/linux-nat.h
@@ -118,12 +118,11 @@ struct lwp_info
native target is active. */
extern struct lwp_info *lwp_list;
-/* Iterate over the PTID each active thread (light-weight process). There
- must be at least one. */
-#define ALL_LWPS(LP, PTID) \
- for ((LP) = lwp_list, (PTID) = (LP)->ptid; \
+/* Iterate over each active thread (light-weight process). */
+#define ALL_LWPS(LP) \
+ for ((LP) = lwp_list; \
(LP) != NULL; \
- (LP) = (LP)->next, (PTID) = (LP) ? (LP)->ptid : (PTID))
+ (LP) = (LP)->next)
#define GET_LWP(ptid) ptid_get_lwp (ptid)
#define GET_PID(ptid) ptid_get_pid (ptid)