gdb: remove dw2_get_file_names_reader's info_ptr parameter
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 15 Mar 2021 17:22:27 +0000 (13:22 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 15 Mar 2021 17:22:27 +0000 (13:22 -0400)
I noticed that this parameter was unused, remove it.

gdb/ChangeLog:

* dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
parameter, adjust caller.

Change-Id: I2a741766a0c658c22c512590aeffdd07391c869c

gdb/ChangeLog
gdb/dwarf2/read.c

index ff0cc2cd1a449b4488410055d092ee1d5794c342..4ead5ae64513bce266101c7685837d4139bef99c 100644 (file)
@@ -1,3 +1,8 @@
+2021-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
+       parameter, adjust caller.
+
 2021-03-15  Tom Tromey  <tromey@adacore.com>
 
        * ada-exp.y (simple_exp): Always push a result for unary '+'.
index a4eb92c7d6f9f9c6630d6e0a70bc46de89679f3b..45b2f52cdfcabab4c19600afadcc0c9ae4cbe080 100644 (file)
@@ -3082,7 +3082,6 @@ dwarf2_read_gdb_index
 
 static void
 dw2_get_file_names_reader (const struct die_reader_specs *reader,
-                          const gdb_byte *info_ptr,
                           struct die_info *comp_unit_die)
 {
   struct dwarf2_cu *cu = reader->cu;
@@ -3182,7 +3181,7 @@ dw2_get_file_names (dwarf2_per_cu_data *this_cu,
 
   cutu_reader reader (this_cu, per_objfile);
   if (!reader.dummy_p)
-    dw2_get_file_names_reader (&reader, reader.info_ptr, reader.comp_unit_die);
+    dw2_get_file_names_reader (&reader, reader.comp_unit_die);
 
   if (this_cu->v.quick->no_file_data)
     return NULL;