aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2018-10-23 12:10:23 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2018-10-26 08:07:19 +0100
commit0b0eff8b1d8b4fe51ad3a14f60816f98bc0e963a (patch)
tree52ae186d9a7cd4af546cd690c93c45b35156a068 /gdb/linux-tdep.c
parente8138a6b782685a5b5b262b793cea90ebaec1d37 (diff)
downloadgdb-0b0eff8b1d8b4fe51ad3a14f60816f98bc0e963a.zip
gdb-0b0eff8b1d8b4fe51ad3a14f60816f98bc0e963a.tar.gz
gdb-0b0eff8b1d8b4fe51ad3a14f60816f98bc0e963a.tar.bz2
gdb/riscv: Remove redundant code, and catch more errors when accessing MISA
When reading the MISA register, the RISC-V specification says that, if MISA can't be found then a default value of 0 should be assumed. As such, this patch ensures that GDB ignores errors when accessing both the new and old locations for the MISA register. Additionally, this patch removes an unneeded flag parameter which didn't provide any additional functionality beyond checking the MISA for the default value of 0. gdb/ChangeLog: * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove READ_P parameter, catch and ignore register access errors from either the old or new MISA location. (riscv_has_feature): Update call to riscv_read_misa_reg.
Diffstat (limited to 'gdb/linux-tdep.c')
0 files changed, 0 insertions, 0 deletions