]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make global_symbol_searcher::filenames private
authorTom Tromey <tromey@adacore.com>
Fri, 24 May 2024 18:31:45 +0000 (12:31 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 10 Jun 2024 20:10:09 +0000 (14:10 -0600)
commitc4c093a31f6252df4ce7b1e23da4a4290c852c51
tree1bf3a25d0db36e9adbee0f7aaafe503b4688d265
parent58a628530ee68fe705b443947643037319e7d44e
Make global_symbol_searcher::filenames private

This patch renames global_symbol_searcher::filenames and makes it
private, adding a new method to append a filename to the vector.  This
also cleans up memory management here, removing an alloca from rbreak,
and removing a somewhat ugly SCOPE_EXIT from the Python code, in favor
of having global_symbol_searcher manage the memory itself.

Regression tested on x86-64 Fedora 38.
gdb/python/python.c
gdb/symtab.c
gdb/symtab.h