[PATCH v2 03/13] gdb: implement readnow_functions::has_unexpanded_symtabs

Jan Vrany
2025-11-24T20:00:55Z

This commit implements readnow_functions::has_unexpanded_symtabs
without using 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 | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 444c0c22b69..bbe531c7ed3 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -1538,6 +1538,11 @@ struct readnow_functions : public dwarf2_base_index_functions
return true;
}

+ bool has_unexpanded_symtabs (struct objfile *objfile) override
+ {
+ return false;
+ }
+
void dump (struct objfile *objfile) override
{
}
--
2.51.0