This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Cleanups to FreeBSD/mips native register operations.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 23 May 2017 18:25:02 -0400
- Subject: [binutils-gdb] Cleanups to FreeBSD/mips native register operations.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT d489d81d0934c4fda8c8aa68fbec1b1315cf8df0 ***
Author: John Baldwin <jhb@FreeBSD.org>
Branch: master
Commit: d489d81d0934c4fda8c8aa68fbec1b1315cf8df0
Cleanups to FreeBSD/mips native register operations.
Compare against the "raw" PC register number instead of the cooked
register number when determining if a register was handled by
PT_GETREGS. Previously the register fetch/store operations only tried
PT_GETREGS to fetch any individual register. The result was that
fetching or storing an individual register not covered by PT_GETREGS
(such as floating point registers) did not work.
While here, remove an early exit to simplify the code flow from the
PT_GETREGS / PT_SETREGS case, and add a getfpregs_supplies similar to
getregs_supplies to describe the registers supplied by PT_GETFPREGS
and PT_SETFPREGS.
gdb/ChangeLog:
* mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
(getpfpregs_supplies): New function.
(mips_fbsd_fetch_inferior_registers): Remove early exit and use
getfpregs_supplies.
(mips_fbsd_store_inferior_registers): Likewise.