diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-02-02 15:25:31 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-02-02 18:50:40 +0000 |
commit | 5bb0830d10b19230f9615694fa3c1230b32794b9 (patch) | |
tree | d86ea8945da24ab2a4659b3d3b1483c5cf2e9643 /binutils/dwarf.h | |
parent | e54d3c943bb3999aeaf1667b4975dc035f7b554c (diff) | |
download | binutils-5bb0830d10b19230f9615694fa3c1230b32794b9.zip binutils-5bb0830d10b19230f9615694fa3c1230b32794b9.tar.gz binutils-5bb0830d10b19230f9615694fa3c1230b32794b9.tar.bz2 |
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/dwarf.h')
-rw-r--r-- | binutils/dwarf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h index 7f7c79d..34c2f5f 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -221,6 +221,7 @@ extern void init_dwarf_regnames_iamcu (void); extern void init_dwarf_regnames_x86_64 (void); extern void init_dwarf_regnames_aarch64 (void); extern void init_dwarf_regnames_s390 (void); +extern void init_dwarf_regnames_riscv (void); extern bfd_boolean load_debug_section (enum dwarf_section_display_enum, void *); extern void free_debug_section (enum dwarf_section_display_enum); |