binutils: Rename init_dwarf_regnames
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 18 Nov 2019 11:56:51 +0000 (11:56 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Nov 2019 00:03:03 +0000 (00:03 +0000)
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

binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h
binutils/readelf.c

index f833c14c125a61a29ed93a3c997a8611169b9d13..3aba2f214beb8f94a671be4a87bf8c8e457b7c6f 100644 (file)
@@ -1,3 +1,11 @@
+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
index 62f2817d18362d59512859f8996fbf1aeae85a6f..c888aad39886c04bc8abb7e00f778568948da225 100644 (file)
@@ -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)
     {
index ca2f062efb752448cd5ed2dcfb987322a63faf31..204f00ef53d3dc49b4aa9c0c498531b342c44547 100644 (file)
@@ -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);
index fab8214664c60826bc39a270d35b5d46182c6c12..1d8f62bf50b625445061b3d9acedaff89c9b37d0 100644 (file)
@@ -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)
     {