From eb5dd7374837c76c05acb27769da6cc10f5bfcc0 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 15 Mar 2021 13:22:27 -0400 Subject: [PATCH] gdb: remove dw2_get_file_names_reader's info_ptr parameter 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 | 5 +++++ gdb/dwarf2/read.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ff0cc2cd1a4..4ead5ae6451 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-03-15 Simon Marchi + + * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr + parameter, adjust caller. + 2021-03-15 Tom Tromey * ada-exp.y (simple_exp): Always push a result for unary '+'. diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index a4eb92c7d6f..45b2f52cdfc 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -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; -- 2.30.2