* 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:
parent
254ed74373
commit
c106e334fb
2 changed files with 6 additions and 1 deletions
|
@ -6594,7 +6594,7 @@ elfcore_write_prstatus (abfd, buf, bufsiz, pid, cursig, gregs)
|
|||
memset (&prstat, 0, sizeof (prstat));
|
||||
prstat.pr_pid = pid;
|
||||
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,
|
||||
note_name, NT_PRSTATUS, &prstat, sizeof (prstat));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue