From: Simon Marchi Date: Thu, 12 Mar 2026 16:32:02 +0000 (-0400) Subject: gdb/dwarf: don't pass lowpc/highpc to dwarf2_ranges_read in cooked_indexer::scan_attr... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27ffb36fa481aee08b1c6c08cfdaaa9a94b794d3;p=thirdparty%2Fbinutils-gdb.git gdb/dwarf: don't pass lowpc/highpc to dwarf2_ranges_read in cooked_indexer::scan_attributes It's not necessary to pass pointers to those variables (dwarf2_ranges_read checks then for nullptr), and they are not used. Remove them. Change-Id: Id5462d481f209e9546380f52ddeea2eea811f5f3 Approved-By: Tom de Vries --- diff --git a/gdb/dwarf2/cooked-indexer.c b/gdb/dwarf2/cooked-indexer.c index 40f62de80eb..1848b92e2ca 100644 --- a/gdb/dwarf2/cooked-indexer.c +++ b/gdb/dwarf2/cooked-indexer.c @@ -275,8 +275,8 @@ cooked_indexer::scan_attributes (dwarf2_per_cu *scanning_per_cu, want to add this value. */ ranges_offset += reader->cu ()->gnu_ranges_base; - unrelocated_addr lowpc, highpc; - dwarf2_ranges_read (ranges_offset, &lowpc, &highpc, reader->cu (), + dwarf2_ranges_read (ranges_offset, nullptr, nullptr, + reader->cu (), m_index_storage->get_addrmap (), scanning_per_cu, abbrev->tag); }