[PATCH v2 07/13] gdb: implement readnow_functions::print_stats

Jan Vrany
2025-11-24T20:03:06Z

This commit implements readnow_functions::print_stats
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 | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 46ecbffd7fd..471496bd4be 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -1564,6 +1564,10 @@ struct readnow_functions : public dwarf2_base_index_functions
return language_unknown;
}

+ void print_stats (struct objfile *objfile, bool print_bcache) override
+ {
+ }
+
void dump (struct objfile *objfile) override
{
}
--
2.51.0