mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +08:00
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
This commit is contained in:

committed by
Nick Clifton

parent
64b588b51e
commit
d1e8523e40
@ -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
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user