diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-05-15 00:03:38 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-05-15 00:03:38 +0000 |
commit | ca6724c16a360b6297d7827cfd0173441ccd95c2 (patch) | |
tree | 3e1e58042a222bbe8532507bb67f404be5c9e80f /gdb/lin-lwp.c | |
parent | 67a659f60e569d0938cb8ce51489514bcf0d4cca (diff) | |
download | gdb-ca6724c16a360b6297d7827cfd0173441ccd95c2.zip gdb-ca6724c16a360b6297d7827cfd0173441ccd95c2.tar.gz gdb-ca6724c16a360b6297d7827cfd0173441ccd95c2.tar.bz2 |
Redefine ptid_t to be a struct rather than an int.
Diffstat (limited to 'gdb/lin-lwp.c')
-rw-r--r-- | gdb/lin-lwp.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index 055ace7..6503331 100644 --- a/gdb/lin-lwp.c +++ b/gdb/lin-lwp.c @@ -102,18 +102,10 @@ static int num_lwps; static int threaded; -#ifndef TIDGET -#define TIDGET(PID) (((PID) & 0x7fffffff) >> 16) -#define PIDGET0(PID) (((PID) & 0xffff)) -#define PIDGET(PID) ((PIDGET0 (PID) == 0xffff) ? -1 : PIDGET0 (PID)) -#define MERGEPID(PID, TID) (((PID) & 0xffff) | ((TID) << 16)) -#endif - -#define THREAD_FLAG 0x80000000 -#define is_lwp(pid) (((pid) & THREAD_FLAG) == 0 && TIDGET (pid)) -#define GET_LWP(pid) TIDGET (pid) -#define GET_PID(pid) PIDGET (pid) -#define BUILD_LWP(tid, pid) MERGEPID (pid, tid) +#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) #define is_cloned(pid) (GET_LWP (pid) != GET_PID (pid)) |