* [pushed] gdb: remove dw2_get_file_names_reader's info_ptr parameter
@ 2021-03-15 17:23 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2021-03-15 17:23 UTC (permalink / raw)
To: gdb-patches
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 ff0cc2cd1a44..4ead5ae64513 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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 '+'.
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index a4eb92c7d6f9..45b2f52cdfca 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.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-15 17:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 17:23 [pushed] gdb: remove dw2_get_file_names_reader's info_ptr parameter Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).