diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-04-18 10:49:44 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-05-23 12:02:35 -0700 |
commit | d489d81d0934c4fda8c8aa68fbec1b1315cf8df0 (patch) | |
tree | 6713fd5ddb5c94562c0a67627efd6847fde06275 /gdb/gdb_obstack.h | |
parent | 6e92fed5946111a76064feb8a2a184d224deae1a (diff) | |
download | binutils-d489d81d0934c4fda8c8aa68fbec1b1315cf8df0.zip binutils-d489d81d0934c4fda8c8aa68fbec1b1315cf8df0.tar.gz binutils-d489d81d0934c4fda8c8aa68fbec1b1315cf8df0.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdb_obstack.h')
0 files changed, 0 insertions, 0 deletions