aboutsummaryrefslogtreecommitdiff
path: root/gdb/jit.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-07-16 23:52:05 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-08-12 10:38:29 -0400
commitcb9f919f0f4b7f30023f353a8fd16979f8ace99a (patch)
tree8b426f7371e41be10c8388a42c442d5a637c7363 /gdb/jit.c
parent2e7c4d0fe5b7d28af9c6ba94e76c42fe8ca08eb7 (diff)
downloadbinutils-cb9f919f0f4b7f30023f353a8fd16979f8ace99a.zip
binutils-cb9f919f0f4b7f30023f353a8fd16979f8ace99a.tar.gz
binutils-cb9f919f0f4b7f30023f353a8fd16979f8ace99a.tar.bz2
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 <keiths@redhat.com> Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/jit.c')
-rw-r--r--gdb/jit.c2
1 files changed, 1 insertions, 1 deletions
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)
{