[PATCH v2 11/13] gdb: make readnow_functions to inherit from quick_symbol_functions

Jan Vrany
2025-11-24T20:01:21Z

This commit makes readnow_functions to inherit directly from abstract
base class quick_symbol_functions since it does not use any of the
DWARF data structures. This will allow readnow_functions to be used in
other cases, for example in JIT reader.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33554
Approved-By: Tom Tromey <tom@tromey.com>
---
gdb/dwarf2/read.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 3516e3de556..7c1640a9d12 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -1531,7 +1531,7 @@ struct quick_file_names
quick symbol functions, to avoid special cases in the rest of the
code. */

-struct readnow_functions : public dwarf2_base_index_functions
+struct readnow_functions : public quick_symbol_functions
{
bool has_symbols (struct objfile *objfile) override
{
--
2.51.0