* m68klinux-nat.c (fill_fpregset): Properly pass address of

buffer to regcache_collect.
This commit is contained in:
Andreas Schwab
2002-04-06 23:43:58 +00:00
parent fc594a441d
commit 7c5ed3465e
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2002-04-07 Andreas Schwab <schwab@suse.de>
* m68klinux-nat.c (fill_fpregset): Properly pass address of
buffer to regcache_collect.
2002-04-04 Daniel Jacobowitz <drow@mvista.com>
Merge from trunk:

View File

@@ -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