This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Compile errors on FreBSD/i386 3.x
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 18 Jan 2002 20:02:00 -0500
- Subject: Compile errors on FreBSD/i386 3.x
Hello,
On a FreeBSD machine I'm seeing the compiler error:
/home/scratch/GDB/src/bfd/elf.c: In function `elfcore_write_prstatus':
/home/scratch/GDB/src/bfd/elf.c:6588: incompatible type for argument 1
of `memcpy'
A guess at the fix is:
*** elf.c 2002/01/15 01:30:18
--- elf.c 2002/01/19 01:00:41
*************** elfcore_write_prstatus (abfd, buf, bufsi
*** 6325,6331 ****
memset (&prstat, 0, sizeof (prstat));
prstat.pr_pid = pid;
prstat.pr_cursig = cursig;
! memcpy (prstat.pr_reg, gregs, sizeof (prstat.pr_reg));
return elfcore_write_note (abfd, buf, bufsiz,
note_name, NT_PRSTATUS, &prstat, sizeof
(prstat));
}
--- 6325,6331 ----
memset (&prstat, 0, sizeof (prstat));
prstat.pr_pid = pid;
prstat.pr_cursig = cursig;
! memcpy (&prstat.pr_reg, gregs, sizeof (prstat.pr_reg));
return elfcore_write_note (abfd, buf, bufsiz,
note_name, NT_PRSTATUS, &prstat, sizeof
(prstat));
}
Andrew