summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-04-07 14:14:46 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-04-07 14:14:46 +0000
commitc58ead36b25d0a53a0e4231b78626408b039f9ec (patch)
tree5675f61164790ac088e73f9712fa9a9c367cfd9f /gnu/usr.bin/binutils/gdb
parente7598ca3c5b007bc382781ca2afaea30e70846d9 (diff)
The wcookie is per-process, not per-thread.
Diffstat (limited to 'gnu/usr.bin/binutils/gdb')
-rw-r--r--gnu/usr.bin/binutils/gdb/sparc-nat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/gdb/sparc-nat.c b/gnu/usr.bin/binutils/gdb/sparc-nat.c
index 4bd7b725384..1a98463d571 100644
--- a/gnu/usr.bin/binutils/gdb/sparc-nat.c
+++ b/gnu/usr.bin/binutils/gdb/sparc-nat.c
@@ -273,11 +273,7 @@ sparc_xfer_wcookie (struct target_ops *ops, enum target_object object,
later). As of release 3.4, OpenBSD doesn't use a randomized
cookie yet, but a future release probably will. */
{
- int pid;
-
- pid = TIDGET (inferior_ptid);
- if (pid == 0)
- pid = PIDGET (inferior_ptid);
+ int pid = PIDGET (inferior_ptid);
/* Sanity check. The proper type for a cookie is register_t, but
we can't assume that this type exists on all systems supported