Module Name: src Committed By: skrll Date: Tue Mar 18 08:40:05 UTC 2014
Modified Files: src/external/gpl3/gdb/dist/gdb: armnbsd-nat.c Log Message: In fill_fpregset correct the address to grab the register from To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/armnbsd-nat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/gdb/armnbsd-nat.c diff -u src/external/gpl3/gdb/dist/gdb/armnbsd-nat.c:1.8 src/external/gpl3/gdb/dist/gdb/armnbsd-nat.c:1.9 --- src/external/gpl3/gdb/dist/gdb/armnbsd-nat.c:1.8 Thu Oct 3 18:30:44 2013 +++ src/external/gpl3/gdb/dist/gdb/armnbsd-nat.c Tue Mar 18 08:40:05 2014 @@ -177,7 +177,7 @@ fill_fpregset (const struct regcache *re } 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 @@ fetch_fp_regs (struct regcache *regcache if (ret < 0) { - warning (_("unable to fetch general registers")); + warning (_("unable to fetch floating-point registers")); return; }