Use unrelocated_addr in dwarf2_base_index_functions::find_per_cu
authorTom Tromey <tromey@adacore.com>
Thu, 14 Dec 2023 20:13:59 +0000 (13:13 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 9 Jan 2024 13:58:51 +0000 (06:58 -0700)
commitbdb4b8036fd60438ac614d8a8326a17fa5f4ebe7
treea46b8d79ad46481586768f9f9515f0087a7822b1
parent7c3df3c680c2bee0b17e60bfbadc751c67e05ed0
Use unrelocated_addr in dwarf2_base_index_functions::find_per_cu

dwarf2_base_index_functions::find_per_cu is documented as using an
unrelocated address.  This patch changes the interface to use the
unrelocated_addr type, just to be a bit more type-safe.

Regression tested on x86-64 Fedora 38.
gdb/dwarf2/cooked-index.c
gdb/dwarf2/cooked-index.h
gdb/dwarf2/read.c
gdb/dwarf2/read.h