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 In fill_fpregset correct the addr...



details:   https://anonhg.NetBSD.org/src/rev/a9cf60957491
branches:  trunk
changeset: 794576:a9cf60957491
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Mar 18 08:40:05 2014 +0000

description:
In fill_fpregset correct the address to grab the register from

diffstat:

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

diffs (21 lines):

diff -r 33e311468843 -r a9cf60957491 external/gpl3/gdb/dist/gdb/armnbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/armnbsd-nat.c  Tue Mar 18 08:22:05 2014 +0000
+++ b/external/gpl3/gdb/dist/gdb/armnbsd-nat.c  Tue Mar 18 08:40:05 2014 +0000
@@ -177,7 +177,7 @@
     }
   else if (regno >= ARM_D0_REGNUM && regno <= ARM_D0_REGNUM + 15)
     regcache_raw_collect(regcache, regno,
-                        (char *) vfpregsetp->fpr_vfp.vfp_regs + 8*regno);
+                        (char *) vfpregsetp->fpr_vfp.vfp_regs + 8 * (regno - ARM_D0_REGNUM));
 
   if (ARM_FPSCR_REGNUM == regno || -1 == regno)
     regcache_raw_collect (regcache, ARM_FPSCR_REGNUM,
@@ -308,7 +308,7 @@
 
   if (ret < 0)
     {
-      warning (_("unable to fetch general registers"));
+      warning (_("unable to fetch floating-point registers"));
       return;
     }
 



Home | Main Index | Thread Index | Old Index