From cb9f919f0f4b7f30023f353a8fd16979f8ace99a Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 16 Jul 2024 23:52:05 -0400 Subject: gdb: add program_space parameter to lookup_minimal_symbol_text Make the current program space reference bubble up one level. Use a program space from the context whenever that makes sense. Change-Id: Id3b0bf4490178d71a9aecdbf404b9287c22b30f5 Reviewed-by: Keith Seitz Approved-By: Andrew Burgess --- gdb/jit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/jit.c') diff --git a/gdb/jit.c b/gdb/jit.c index 2744d03..d451332 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -880,7 +880,7 @@ jit_breakpoint_re_set_internal (struct gdbarch *gdbarch, program_space *pspace) /* Lookup the registration symbol. If it is missing, then we assume we are not attached to a JIT. */ bound_minimal_symbol reg_symbol - = lookup_minimal_symbol_text (jit_break_name, the_objfile); + = lookup_minimal_symbol_text (pspace, jit_break_name, the_objfile); if (reg_symbol.minsym == NULL || reg_symbol.value_address () == 0) { -- cgit v1.1