aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-11-18 11:56:51 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-11-28 00:03:03 +0000
commit955ff7fcf8ddc90200819a184380c64c27b76e91 (patch)
treefa76f5b14b14fb800876f84ed62b11b55c54b9ac
parentd9acf70759a258bf674cef91ae9289e9c7ce2428 (diff)
downloadgdb-955ff7fcf8ddc90200819a184380c64c27b76e91.zip
gdb-955ff7fcf8ddc90200819a184380c64c27b76e91.tar.gz
gdb-955ff7fcf8ddc90200819a184380c64c27b76e91.tar.bz2
binutils: Rename init_dwarf_regnames
As part of a process to change how dwarf.c figures out the correct name for a register I wanted to clean up how we initialise the register name tracking state. As part of this I rename init_dwarf_regnames to init_dwarf_regnames_by_elf_machine_code, later commits will add a different entry point to initialise the register name state. There should be no user visible changes after this commit. binutils/ChangeLog: * dwarf.c (init_dwarf_regnames): Renamed to... (init_dwarf_regnames_by_elf_machine_code): ...this. * dwarf.h (init_dwarf_regnames): Renamed to... (init_dwarf_regnames_by_elf_machine_code): ...this. * readelf.c (process_file_header): Update call to use new name. Change-Id: Ic8d2ef5fb62a8590ecd8cbb7e6258e11c6263594
-rw-r--r--binutils/ChangeLog8
-rw-r--r--binutils/dwarf.c2
-rw-r--r--binutils/dwarf.h2
-rw-r--r--binutils/readelf.c2
4 files changed, 11 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index f833c14..3aba2f2 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,13 @@
2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
+ * dwarf.c (init_dwarf_regnames): Renamed to...
+ (init_dwarf_regnames_by_elf_machine_code): ...this.
+ * dwarf.h (init_dwarf_regnames): Renamed to...
+ (init_dwarf_regnames_by_elf_machine_code): ...this.
+ * readelf.c (process_file_header): Update call to use new name.
+
+2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com>
+
* dwarf.c (frame_need_space): Compare dwarf_regnames_count against
0, and only warn about large numbers of registers if the number is
more than the dwarf_regnames_count.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 62f2817..c888aad 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -7590,7 +7590,7 @@ init_dwarf_regnames_riscv (void)
}
void
-init_dwarf_regnames (unsigned int e_machine)
+init_dwarf_regnames_by_elf_machine_code (unsigned int e_machine)
{
switch (e_machine)
{
diff --git a/binutils/dwarf.h b/binutils/dwarf.h
index ca2f062..204f00e 100644
--- a/binutils/dwarf.h
+++ b/binutils/dwarf.h
@@ -225,7 +225,7 @@ extern unsigned long dwarf_start_die;
extern int dwarf_check;
-extern void init_dwarf_regnames (unsigned int);
+extern void init_dwarf_regnames_by_elf_machine_code (unsigned int);
extern void init_dwarf_regnames_i386 (void);
extern void init_dwarf_regnames_iamcu (void);
extern void init_dwarf_regnames_x86_64 (void);
diff --git a/binutils/readelf.c b/binutils/readelf.c
index fab8214..1d8f62b 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4852,7 +4852,7 @@ process_file_header (Filedata * filedata)
return FALSE;
}
- init_dwarf_regnames (header->e_machine);
+ init_dwarf_regnames_by_elf_machine_code (header->e_machine);
if (do_header)
{