diff options
Diffstat (limited to 'gdb/linux-nat.h')
-rw-r--r-- | gdb/linux-nat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h index 8ae5ab3..48c9a0c 100644 --- a/gdb/linux-nat.h +++ b/gdb/linux-nat.h @@ -83,6 +83,11 @@ extern struct lwp_info *lwp_list; (LP) != NULL; \ (LP) = (LP)->next, (PTID) = (LP) ? (LP)->ptid : (PTID)) +#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); |