summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2012-04-07 14:14:45 +0000
committerkettenis <kettenis@openbsd.org>2012-04-07 14:14:45 +0000
commit3e5fbf51b1e028d6f57a53a045bc1a3f0c9944b8 (patch)
tree0c620a4560e72341507cddbac1b04b0b01f585d8
parentFix previous commit; the function signatures are different for our in-tree (diff)
downloadwireguard-openbsd-3e5fbf51b1e028d6f57a53a045bc1a3f0c9944b8.tar.xz
wireguard-openbsd-3e5fbf51b1e028d6f57a53a045bc1a3f0c9944b8.zip
The wcookie is per-process, not per-thread.
-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