binutils/riscv: Register names in DWARF output
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 2 Feb 2018 15:25:31 +0000 (15:25 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 2 Feb 2018 18:50:40 +0000 (18:50 +0000)
commit5bb0830d10b19230f9615694fa3c1230b32794b9
treed86ea8945da24ab2a4659b3d3b1483c5cf2e9643
parente54d3c943bb3999aeaf1667b4975dc035f7b554c
binutils/riscv: Register names in DWARF output

Adds a register name table for RiscV so that objdump and readelf can
both use better register names.

binutils/ChangeLog:

* dwarf.c (dwarf_regnames_riscv): New register name table.
(init_dwarf_regnames_riscv): New function.
(init_dwarf_regnames): Add call to initialise RiscV register
names.
* dwarf.h (init_dwarf_regnames_riscv): Declare.
* objdump.c (dump_dwarf): Add call to initialise RiscV register
names.
binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h
binutils/objdump.c