aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_obstack.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-04-18 10:49:44 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2017-05-23 12:02:35 -0700
commitd489d81d0934c4fda8c8aa68fbec1b1315cf8df0 (patch)
tree6713fd5ddb5c94562c0a67627efd6847fde06275 /gdb/gdb_obstack.h
parent6e92fed5946111a76064feb8a2a184d224deae1a (diff)
downloadbinutils-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