Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb Fix passing of floating point reg...



details:   https://anonhg.NetBSD.org/src/rev/029aa083d44b
branches:  trunk
changeset: 771314:029aa083d44b
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Nov 19 13:00:38 2011 +0000

description:
Fix passing of floating point registers.

diffstat:

 external/gpl3/gdb/dist/gdb/m68kbsd-tdep.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ef0bd5196549 -r 029aa083d44b external/gpl3/gdb/dist/gdb/m68kbsd-tdep.c
--- a/external/gpl3/gdb/dist/gdb/m68kbsd-tdep.c Sat Nov 19 12:46:41 2011 +0000
+++ b/external/gpl3/gdb/dist/gdb/m68kbsd-tdep.c Sat Nov 19 13:00:38 2011 +0000
@@ -45,7 +45,7 @@
 int
 m68kbsd_fpreg_offset (struct gdbarch *gdbarch, int regnum)
 {
-  int fp_len = TYPE_LENGTH (gdbarch_register_type (gdbarch, regnum));
+  int fp_len = TYPE_LENGTH (gdbarch_register_type (gdbarch, M68K_FP0_REGNUM));
   
   if (regnum >= M68K_FPC_REGNUM)
     return 8 * fp_len + (regnum - M68K_FPC_REGNUM) * 4;
@@ -68,7 +68,7 @@
 
   gdb_assert (len >= M68KBSD_SIZEOF_FPREGS);
 
-  for (i = M68K_FP0_REGNUM; i <= M68K_PC_REGNUM; i++)
+  for (i = M68K_FP0_REGNUM; i <= M68K_FPI_REGNUM; i++)
     {
       if (regnum == i || regnum == -1)
        regcache_raw_supply (regcache, i,



Home | Main Index | Thread Index | Old Index