aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68klinux-nat.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2002-04-06 23:42:15 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2002-04-06 23:42:15 +0000
commit2853c33c3322660f3e2cadbaf5b3003fa4e58352 (patch)
treec6ebca6989efdf14f026ad82c5ba77c03fa9a16b /gdb/m68klinux-nat.c
parentc2169756a8401d39c336250819099c1fbc9e5091 (diff)
downloadgdb-2853c33c3322660f3e2cadbaf5b3003fa4e58352.zip
gdb-2853c33c3322660f3e2cadbaf5b3003fa4e58352.tar.gz
gdb-2853c33c3322660f3e2cadbaf5b3003fa4e58352.tar.bz2
* m68klinux-nat.c (fill_fpregset): Properly pass address of
buffer to regcache_collect.
Diffstat (limited to 'gdb/m68klinux-nat.c')
-rw-r--r--gdb/m68klinux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c
index 10f4a19..82a6124 100644
--- a/gdb/m68klinux-nat.c
+++ b/gdb/m68klinux-nat.c
@@ -383,7 +383,7 @@ fill_fpregset (elf_fpregset_t *fpregsetp, int regno)
/* 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