gdb/riscv: Fix some ARI issues
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 12 Mar 2018 21:41:42 +0000 (21:41 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 12 Mar 2018 21:41:42 +0000 (21:41 +0000)
commit89a3b63e52be3e9bcf4b3d15e210652a5cb839c5
tree054514d3da11184c388b7d5983fd1057117d0ede
parent984c72381ccd9f950a87d4d7edecc6fa30db8b41
gdb/riscv: Fix some ARI issues

Fix some ARI issues in recently added riscv code, the ARI email is:

  https://sourceware.org/ml/gdb-patches/2018-03/msg00156.html

gdb/ChangeLog:

* riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
to error message string.
(riscv_register_name): Use xsnprintf instead of sprintf.
(riscv_insn::fetch_instruction): Use gdb_assert instead of
internal_error.
(riscv_print_arg_location): Use gdb_assert_not_reached instead of
error.
(riscv_push_dummy_call): Likewise.
gdb/ChangeLog
gdb/riscv-tdep.c