From: Andreas Schwab Date: Sat, 6 Apr 2002 23:43:58 +0000 (+0000) Subject: * m68klinux-nat.c (fill_fpregset): Properly pass address of X-Git-Tag: gdb_5_2-2002-04-29-release~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c5ed3465e5c0a493c9944ab0acd7380bf200ccf;p=thirdparty%2Fbinutils-gdb.git * m68klinux-nat.c (fill_fpregset): Properly pass address of buffer to regcache_collect. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dabad3f2cbf..2a6137c5351 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-04-07 Andreas Schwab + + * m68klinux-nat.c (fill_fpregset): Properly pass address of + buffer to regcache_collect. + 2002-04-04 Daniel Jacobowitz Merge from trunk: diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c index 10f4a191841..82a6124a7aa 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