aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-01-25 18:56:59 +0000
committerMark Kettenis <kettenis@gnu.org>2002-01-25 18:56:59 +0000
commitc106e334fbc6ecfa64d0c59c096e0a2f60b89da6 (patch)
treed06014c5c94aecca14d652c45ea9825e0f27cb28 /bfd/elf.c
parent254ed74373f67d4e5668c48a8dd16e8120c9a040 (diff)
downloadgdb-c106e334fbc6ecfa64d0c59c096e0a2f60b89da6.zip
gdb-c106e334fbc6ecfa64d0c59c096e0a2f60b89da6.tar.gz
gdb-c106e334fbc6ecfa64d0c59c096e0a2f60b89da6.tar.bz2
* elf.c (elfcore_write_prstatus): Make sure we pass the address of
prstat.pr_reg even if it is a struct.
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 1df8459..ea712fb 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -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));
}