forked from Imagelibrary/binutils-gdb
StackGhost cookie is per-process.
gdb/ChangeLog:
* sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2014-02-27 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
|
||||
|
||||
2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Additional PR 8882 fix.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user