Phase 1 of the ptid_t changes.
[deliverable/binutils-gdb.git] / gdb / config / sparc / tm-sun4sol2.h
index 7642fe39223afd36893c8c37375163963bcd81b8..09f36bbd6f1e7f649ca98f100220d27d2253a399 100644 (file)
@@ -82,6 +82,7 @@ extern char *sunpro_static_transform_name (char *);
 #define HANDLE_SVR4_EXEC_EMULATORS
 
 /* Macros to extract process id and thread id from a composite pid/tid */
-#define PIDGET(PID)            (((PID) & 0xffff))
+#define PIDGET0(PID)           (((PID) & 0xffff))
+#define PIDGET(PID)            ((PIDGET0 (PID) == 0xffff) ? -1 : PIDGET0 (PID))
 #define TIDGET(PID)            (((PID) & 0x7fffffff) >> 16)
 #define MERGEPID(PID, TID)     (((PID) & 0xffff) | ((TID) << 16))
This page took 0.02716 seconds and 4 git commands to generate.