+/* The global list of LWPs, for ALL_LWPS. Unlike the threads list,
+ there is always at least one LWP on the list while the GNU/Linux
+ 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; \
+ (LP) != NULL; \
+ (LP) = (LP)->next, (PTID) = (LP) ? (LP)->ptid : (PTID))
+