]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* m68klinux-nat.c (fill_fpregset): Properly pass address of
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 6 Apr 2002 23:43:58 +0000 (23:43 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 6 Apr 2002 23:43:58 +0000 (23:43 +0000)
buffer to regcache_collect.

gdb/ChangeLog
gdb/m68klinux-nat.c

index dabad3f2cbfacd93451335f18a0d6bc6a78bdffc..2a6137c53511325082c76dfa5957b5c7cabab7ad 100644 (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:
index 10f4a191841af3c79bf314aa5c536c203d375f57..82a6124a7aab643be2fcc828272ef86461e4e288 100644 (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