aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorDennis Brueni <dbrueni@slickedit.com>2014-10-29 17:17:32 +0000
committerNick Clifton <nickc@redhat.com>2014-10-29 17:17:32 +0000
commitd1e8523e40ed5094ed7d5b352ac6b0eabf9f690c (patch)
treef97134a562bba308b89ceb4f6f14a9f5532ffb63 /bfd/elf.c
parent64b588b51e04a80ac6f9a30817b5247ad1c4790b (diff)
downloadgdb-d1e8523e40ed5094ed7d5b352ac6b0eabf9f690c.zip
gdb-d1e8523e40ed5094ed7d5b352ac6b0eabf9f690c.tar.gz
gdb-d1e8523e40ed5094ed7d5b352ac6b0eabf9f690c.tar.bz2
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
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index b5fc84b..dbb6f27 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,