]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/dwarf: don't pass lowpc/highpc to dwarf2_ranges_read in cooked_indexer::scan_attr...
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 12 Mar 2026 16:32:02 +0000 (12:32 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 14 Mar 2026 17:33:21 +0000 (13:33 -0400)
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 <tdevries@suse.de>
gdb/dwarf2/cooked-indexer.c

index 40f62de80eb4cbbb77627bb96f0034246d2e0893..1848b92e2cab927c49363954df5c463c308d1e90 100644 (file)
@@ -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);
            }