Optimize lookup_minimal_symbol_text
authorTom Tromey <tom@tromey.com>
Sat, 21 Oct 2023 22:38:23 +0000 (16:38 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 9 Jan 2024 01:40:22 +0000 (18:40 -0700)
commit309d28d1e49d610f925b286c119be6e2ed2ca81b
tree70d3b23a27b2b57004eb12f34bb9647ffbbde87c
parent0a008773c59bd80f80c02220537317c865546aca
Optimize lookup_minimal_symbol_text

lookup_minimal_symbol_text always loops over all objfiles, even when
an objfile is passed in as an argument.  This patch changes the
function to loop over the minimal number of objfiles in the latter
situation.
gdb/minsyms.c