diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-11-18 12:09:04 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-11-28 00:03:03 +0000 |
commit | 229a22cfd2fd3c82a1b57d4af104f361cb0b0a33 (patch) | |
tree | ba37b7607875260926a21347a499d1ba03c46f78 /binutils/dwarf.h | |
parent | 955ff7fcf8ddc90200819a184380c64c27b76e91 (diff) | |
download | binutils-gdb-229a22cfd2fd3c82a1b57d4af104f361cb0b0a33.tar.gz |
binutils: Add a new function to initialise DWARF register name state
Adds a new API function init_dwarf_regnames_by_bfd_arch_and_mach to
initialise the register name state from a BFD architecture and machine
type.
There should be no user visible changes after this commit.
binutils/ChangeLog:
* dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): New
function.
* dwarf.h (init_dwarf_regnames_by_bfd_arch_and_mach): Declare.
* objdump.c (dump_dwarf): Call new function instead of calling
specific initialization routines. Restrucure so that eh_addr_size
is still calculated correctly.
Change-Id: I346d665d2079a18ec4d04bd41893d0e9dc05e4b3
Diffstat (limited to 'binutils/dwarf.h')
-rw-r--r-- | binutils/dwarf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h index 204f00ef53d..8272de857b5 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -226,6 +226,8 @@ extern unsigned long dwarf_start_die; extern int dwarf_check; extern void init_dwarf_regnames_by_elf_machine_code (unsigned int); +extern void init_dwarf_regnames_by_bfd_arch_and_mach (enum bfd_architecture arch, + unsigned long mach); extern void init_dwarf_regnames_i386 (void); extern void init_dwarf_regnames_iamcu (void); extern void init_dwarf_regnames_x86_64 (void); |