This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
fill_fpregset thinko
- From: Andreas Schwab <schwab at suse dot de>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 07 Apr 2002 01:46:29 +0200
- Subject: fill_fpregset thinko
Committed to mainline and 5.2 branch.
Andreas.
2002-04-07 Andreas Schwab <schwab@suse.de>
* m68klinux-nat.c (fill_fpregset): Properly pass address of
buffer to regcache_collect.
--- gdb/m68klinux-nat.c.~1.10.~ 2002-02-26 22:24:41.000000000 +0100
+++ gdb/m68klinux-nat.c 2002-04-07 01:29:10.000000000 +0200
@@ -383,7 +383,7 @@
/* Fill in the floating-point control registers. */
for (i = FPC_REGNUM; i <= FPI_REGNUM; i++)
if (regno == -1 || regno == i)
- regcache_collect (regno, fpregsetp->fpcntl[regno - FPC_REGNUM]);
+ regcache_collect (regno, (char *) &fpregsetp->fpcntl[regno - FPC_REGNUM]);
}
#ifdef HAVE_PTRACE_GETREGS
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."