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>
#include "gdb_bfd.h"
#include "completer.h"
#include <forward_list>
+#include "expanded-symbol.h"
static std::string jit_reader_dir;
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);