aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vrany <jan.vrany@labware.com>2025-12-11 16:11:59 +0000
committerJan Vrany <jan.vrany@labware.com>2026-01-09 10:33:18 +0000
commit150fdba8f1a630515690309f3a56e992378d8366 (patch)
tree79f8d8c8965a646091a9a81f119b60ef25b27f94
parent2b0c27905e247d8357fff5c090fe2d67cb6142b7 (diff)
downloadbinutils-users/jv/try-refactor-readnow_functions.zip
binutils-users/jv/try-refactor-readnow_functions.tar.gz
binutils-users/jv/try-refactor-readnow_functions.tar.bz2
gdb: install expanded_symbols_functions into objfiles created by JIT readerusers/jv/try-refactor-readnow_functionsusers/jv/patches/try-refactor-readnow_functions
This commit installs expanded_symbols_functions into objfiles created by JIT reader API. This is needed so the JIT symbols can be used just like any other symbols. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33554 Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r--gdb/jit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/jit.c b/gdb/jit.c
index 1d3b0f4..4893863 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -42,6 +42,7 @@
#include "gdb_bfd.h"
#include "completer.h"
#include <forward_list>
+#include "expanded-symbol.h"
static std::string jit_reader_dir;
@@ -664,6 +665,7 @@ jit_object_close_impl (struct gdb_symbol_callbacks *cb,
objfile->section_offsets.push_back (0);
objfile->sect_index_text = 0;
objfile->per_bfd->gdbarch = priv_data->gdbarch;
+ objfile->qf.emplace_front (new expanded_symbols_functions);
for (gdb_symtab &symtab : obj->symtabs)
finalize_symtab (&symtab, objfile);