This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-8.0-branch] [ARM] Access FPSCR on vfpv2
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 25 Jul 2017 07:55:53 -0400
- Subject: [binutils-gdb/gdb-8.0-branch] [ARM] Access FPSCR on vfpv2
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 50e64da58e648ff8708935add5b2a87b4e590edf ***
Author: Yao Qi <yao.qi@linaro.org>
Branch: gdb-8.0-branch
Commit: 50e64da58e648ff8708935add5b2a87b4e590edf
[ARM] Access FPSCR on vfpv2
GDB can fetch or store FPSCR on vfpv3, which has 32 VFP registers, but
fail to do so on vfpv2, which has 16 VFP registers. GDB code is incorrect
for vfpv2,
else if (tdep->vfp_register_count > 0
&& regno >= ARM_D0_REGNUM
&& regno <= ARM_D0_REGNUM + tdep->vfp_register_count)
while FPSCR register number is defined as ARM_D0_REGNUM + 32.
ARM_D0_REGNUM, /* VFP double-precision registers. */
ARM_D31_REGNUM = ARM_D0_REGNUM + 31,
ARM_FPSCR_REGNUM,
The code above uses "<=" rather than "<", in order to put FPSCR in the
range, but it is only correct when tdep->vfp_register_count is 32. On
vpfv2, it is 16, and FPSCR is out of the range, so fetch_vfp_regs or
store_vfp_regs are not called.
gdb:
2017-07-25 Yao Qi <yao.qi@linaro.org>
PR tdep/21717
* arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
condition for FPSCR.
(arm_linux_store_inferior_registers): Likewise.
- Follow-Ups:
- Failures on Fedora-s390x-m64, branch gdb-8.0-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m64, branch gdb-8.0-branch
- Failures on Ubuntu-AArch32-native-gdbserver-m32, branch gdb-8.0-branch
- Failures on Ubuntu-AArch64-native-gdbserver-m64, branch gdb-8.0-branch
- Failures on Fedora-x86_64-native-gdbserver-m64, branch gdb-8.0-branch
- Failures on Fedora-x86_64-m32, branch gdb-8.0-branch
- Failures on Ubuntu-AArch32-native-extended-gdbserver-m32, branch gdb-8.0-branch
- Failures on Fedora-x86_64-native-gdbserver-m32, branch gdb-8.0-branch
- Failures on Fedora-x86_64-native-extended-gdbserver-m32, branch gdb-8.0-branch
- Failures on Fedora-x86_64-m64, branch gdb-8.0-branch
- Failures on Ubuntu-AArch32-m32, branch gdb-8.0-branch
- Failures on Fedora-i686, branch gdb-8.0-branch
- Failures on Fedora-x86_64-cc-with-index, branch gdb-8.0-branch