diff options
author | 2012-04-07 14:14:45 +0000 | |
---|---|---|
committer | 2012-04-07 14:14:45 +0000 | |
commit | 3e5fbf51b1e028d6f57a53a045bc1a3f0c9944b8 (patch) | |
tree | 0c620a4560e72341507cddbac1b04b0b01f585d8 | |
parent | Fix previous commit; the function signatures are different for our in-tree (diff) | |
download | wireguard-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.c | 6 |
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 |