Thix fixes an obvious coding error that led to a GDB crash on AIX or HPUX.
authorDennis Brueni <dbrueni@slickedit.com>
Wed, 29 Oct 2014 17:17:32 +0000 (17:17 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 29 Oct 2014 17:17:32 +0000 (17:17 +0000)
* elf.c (elfcore_write_lwpstatus): fix typo in call to memcpy

bfd/ChangeLog
bfd/elf.c

index d8e99993cdadd3b93b8a16f57d383aa4e78606c0..eebe6bd726abaaf028cc2666a5f50cfb15d78a24 100644 (file)
@@ -1,3 +1,7 @@
+2014-10-29  Dennis Brueni  <dbrueni@slickedit.com>
+
+       * elf.c (elfcore_write_lwpstatus): fix typo in call to memcpy
+
 2014-10-28  Nick Clifton  <nickc@redhat.com>
 
        PR binutils/17512
index b5fc84b81f1a543fd44edf3015fa7ea849f05c63..dbb6f2758a52c252f7e8fc2278ae605f411be346 100644 (file)
--- 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,