aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-function.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2018-10-25 12:03:31 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2018-10-25 12:03:31 +0100
commitee67fd7f3f6ca78eede2862e309c0bcf266bbd7e (patch)
tree027144f4fdf6c8411a08e8c786666881ae0b0c61 /gdb/python/py-function.c
parent0a640d719684f25bdb88ae60148c6978e6131701 (diff)
downloadbinutils-ee67fd7f3f6ca78eede2862e309c0bcf266bbd7e.zip
binutils-ee67fd7f3f6ca78eede2862e309c0bcf266bbd7e.tar.gz
binutils-ee67fd7f3f6ca78eede2862e309c0bcf266bbd7e.tar.bz2
gdb/riscv: Use correct regnum in riscv_linux_nat_target::fetch_registers
In riscv_linux_nat_target::fetch_registers, if we are asked to supply all registers (regnum parameter is -1), then we currently end up calling regcache::raw_supply_zeroed with the regnum -1, which is invalid. Instead we should be passing the regnum of the specific register we wish to supply zeroed, in this case RISCV_CSR_MISA_REGNUM. I removed the extra { ... } block in line with the coding standard while editing this area. gdb/ChangeLog: * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers): Pass correct regnum to raw_supply_zeroed.
Diffstat (limited to 'gdb/python/py-function.c')
0 files changed, 0 insertions, 0 deletions