summaryrefslogtreecommitdiff
path: root/gdb/sparc-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2014-02-27 21:22:29 +0100
committerMark Kettenis <kettenis@gnu.org>2014-02-27 21:22:29 +0100
commit670b46b3a90a150760d110dac4d1a85a0b94fb47 (patch)
treee130ff480997b699fb3b9cf52b086cab6768206b /gdb/sparc-nat.c
parentc91550fc5d8dae5f1140bca649690fa13e5276e9 (diff)
StackGhost cookie is per-process.
gdb/ChangeLog: * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
Diffstat (limited to 'gdb/sparc-nat.c')
-rw-r--r--gdb/sparc-nat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index 30b512484b..77054d143a 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -282,11 +282,7 @@ sparc_xfer_wcookie (struct target_ops *ops, enum target_object object,
later). Since release 3.6, OpenBSD uses a fully randomized
cookie. */
{
- int pid;
-
- pid = ptid_get_lwp (inferior_ptid);
- if (pid == 0)
- pid = ptid_get_pid (inferior_ptid);
+ int pid = ptid_get_pid (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