[PATCH v2 10/13] gdb: implement readnow_functions::map_symbol_filenames

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

This commit implements readnow_functions::map_symbol_filenames
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 0d57a2bd538..3516e3de556 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -1647,6 +1647,11 @@ struct readnow_functions : public dwarf2_base_index_functions

return nullptr;
}
+
+ void map_symbol_filenames (objfile *objfile, symbol_filename_listener fun,
+ bool need_fullname) override
+ {
+ }
};

/* See read.h. */
--
2.51.0