summaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2018-02-02 15:25:31 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2018-02-02 18:50:40 +0000
commit5bb0830d10b19230f9615694fa3c1230b32794b9 (patch)
treed86ea8945da24ab2a4659b3d3b1483c5cf2e9643 /binutils/objdump.c
parente54d3c943bb3999aeaf1667b4975dc035f7b554c (diff)
downloadbinutils-gdb-5bb0830d10b19230f9615694fa3c1230b32794b9.tar.gz
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.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index d8dca90f40c..37a9f0d2e16 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2732,6 +2732,10 @@ dump_dwarf (bfd *abfd)
init_dwarf_regnames_s390 ();
break;
+ case bfd_arch_riscv:
+ init_dwarf_regnames_riscv ();
+ break;
+
default:
break;
}