In fill_fpregset correct the address to grab the register from
This commit is contained in:
parent
5c06472b65
commit
9bf4ee7d90
4
external/gpl3/gdb/dist/gdb/armnbsd-nat.c
vendored
4
external/gpl3/gdb/dist/gdb/armnbsd-nat.c
vendored
@ -177,7 +177,7 @@ fill_fpregset (const struct regcache *regcache, fpregset_t *vfpregsetp, int regn
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user