[pushed,3/3] gdb/dwarf: remove unused parameter of create_dwo_cu_reader

Message ID 20250313023306.8480-3-simon.marchi@efficios.com
State New
Headers
Series [pushed,1/3] gdb/dwarf: use ranged for loop in some spots |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply

Commit Message

Simon Marchi March 13, 2025, 2:33 a.m. UTC
  From: Simon Marchi <simon.marchi@polymtl.ca>

Change-Id: I0c5b7591eab8e6616b653be7c04bc75159427ad6
---
 gdb/dwarf2/read.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
  

Patch

diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 5ca3e95e61c8..d53c1e95b39d 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -6543,9 +6543,8 @@  lookup_dwo_file (dwarf2_per_bfd *per_bfd, const char *dwo_name,
 /* die_reader_func for create_dwo_cu.  */
 
 static void
-create_dwo_cu_reader (dwarf2_cu *cu, const gdb_byte *info_ptr,
-		      die_info *comp_unit_die, dwo_file *dwo_file,
-		      dwo_unit *dwo_unit)
+create_dwo_cu_reader (dwarf2_cu *cu, die_info *comp_unit_die,
+		      dwo_file *dwo_file, dwo_unit *dwo_unit)
 {
   sect_offset sect_off = cu->per_cu->sect_off;
   struct dwarf2_section_info *section = cu->per_cu->section;
@@ -6606,8 +6605,8 @@  create_cus_hash_table (dwarf2_cu *cu, dwo_file &dwo_file)
 			  cu, &dwo_file);
 
       if (!reader.is_dummy ())
-	create_dwo_cu_reader (reader.cu (), reader.info_ptr (),
-			      reader.top_level_die (), &dwo_file, &read_unit);
+	create_dwo_cu_reader (reader.cu (), reader.top_level_die (), &dwo_file,
+			      &read_unit);
       info_ptr += per_cu.length ();
 
       /* If the unit could not be parsed, skip it.  */