Phase 1 of the ptid_t changes.
[deliverable/binutils-gdb.git] / gdb / config / i386 / tm-i386v42mp.h
index e6588e4fd937376f4966a70a3430d2641853266c..e70bc4d424dcab9fcd7d0989314e617661f98101 100644 (file)
@@ -43,7 +43,8 @@
 #define PIDBITS 16
 
 /* Return the process id stored in composite PID. */
-#define PIDGET(PID)             (((PID) & ((1 << PIDBITS) - 1)))
+#define PIDGET0(PID)            (((PID) & ((1 << PIDBITS) - 1)))
+#define PIDGET(PID)             ((PIDGET0 (PID) == ((1 << PIDBITS) -1)) ? -1 : PIDGET0 (PID))
 
 /* Return the thread or lwp id stored in composite PID. */
 #define TIDGET(PID)             (((PID) & 0x3fffffff) >> PIDBITS)
This page took 0.033165 seconds and 4 git commands to generate.