From c106e334fbc6ecfa64d0c59c096e0a2f60b89da6 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 25 Jan 2002 18:56:59 +0000 Subject: [PATCH] * elf.c (elfcore_write_prstatus): Make sure we pass the address of prstat.pr_reg even if it is a struct. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 01a2d101aa1..9f0c014deab 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-01-19 Mark Kettenis + + * 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 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX. diff --git a/bfd/elf.c b/bfd/elf.c index 1df8459a9af..ea712fb50a1 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)); } -- 2.30.2