From d1e8523e40ed5094ed7d5b352ac6b0eabf9f690c Mon Sep 17 00:00:00 2001 From: Dennis Brueni Date: Wed, 29 Oct 2014 17:17:32 +0000 Subject: [PATCH] Thix fixes an obvious coding error that led to a GDB crash on AIX or HPUX. * elf.c (elfcore_write_lwpstatus): fix typo in call to memcpy --- bfd/ChangeLog | 4 ++++ bfd/elf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d8e99993cda..eebe6bd726a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2014-10-29 Dennis Brueni + + * elf.c (elfcore_write_lwpstatus): fix typo in call to memcpy + 2014-10-28 Nick Clifton PR binutils/17512 diff --git a/bfd/elf.c b/bfd/elf.c index b5fc84b81f1..dbb6f2758a5 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -9408,7 +9408,7 @@ elfcore_write_lwpstatus (bfd *abfd, lwpstat.pr_lwpid = pid >> 16; lwpstat.pr_cursig = cursig; #if defined (HAVE_LWPSTATUS_T_PR_REG) - memcpy (lwpstat.pr_reg, gregs, sizeof (lwpstat.pr_reg)); + memcpy (&lwpstat.pr_reg, gregs, sizeof (lwpstat.pr_reg)); #elif defined (HAVE_LWPSTATUS_T_PR_CONTEXT) #if !defined(gregs) memcpy (lwpstat.pr_context.uc_mcontext.gregs, -- 2.30.2