+/* 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 each active thread (light-weight process). */
+#define ALL_LWPS(LP) \
+ for ((LP) = lwp_list; \
+ (LP) != NULL; \
+ (LP) = (LP)->next)
+
+#define GET_LWP(ptid) ptid_get_lwp (ptid)
+#define GET_PID(ptid) ptid_get_pid (ptid)
+#define is_lwp(ptid) (GET_LWP (ptid) != 0)
+#define BUILD_LWP(lwp, pid) ptid_build (pid, lwp, 0)
+
+/* Attempt to initialize libthread_db. */
+void check_for_thread_db (void);
+
+int thread_db_attach_lwp (ptid_t ptid);
+
+/* Return the set of signals used by the threads library. */
+extern void lin_thread_get_thread_signals (sigset_t *mask);