diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-04-07 14:14:46 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-04-07 14:14:46 +0000 |
commit | c58ead36b25d0a53a0e4231b78626408b039f9ec (patch) | |
tree | 5675f61164790ac088e73f9712fa9a9c367cfd9f /gnu/usr.bin/binutils/gdb | |
parent | e7598ca3c5b007bc382781ca2afaea30e70846d9 (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.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 |