mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
* elf.c (elfcore_write_prstatus): Make sure we pass the address of
prstat.pr_reg even if it is a struct.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2002-01-19 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* elf.c (elfcore_write_prstatus): Make sure we pass the address of
|
||||||
|
prstat.pr_reg even if it is a struct.
|
||||||
|
|
||||||
2002-01-22 Steve Ellcey <sje@cup.hp.com>
|
2002-01-22 Steve Ellcey <sje@cup.hp.com>
|
||||||
|
|
||||||
* bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
|
* bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
|
||||||
|
@ -6594,7 +6594,7 @@ elfcore_write_prstatus (abfd, buf, bufsiz, pid, cursig, gregs)
|
|||||||
memset (&prstat, 0, sizeof (prstat));
|
memset (&prstat, 0, sizeof (prstat));
|
||||||
prstat.pr_pid = pid;
|
prstat.pr_pid = pid;
|
||||||
prstat.pr_cursig = cursig;
|
prstat.pr_cursig = cursig;
|
||||||
memcpy (prstat.pr_reg, gregs, sizeof (prstat.pr_reg));
|
memcpy (&prstat.pr_reg, gregs, sizeof (prstat.pr_reg));
|
||||||
return elfcore_write_note (abfd, buf, bufsiz,
|
return elfcore_write_note (abfd, buf, bufsiz,
|
||||||
note_name, NT_PRSTATUS, &prstat, sizeof (prstat));
|
note_name, NT_PRSTATUS, &prstat, sizeof (prstat));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user