diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-07-16 23:52:02 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-08-12 10:31:09 -0400 |
commit | 4144d36a68bda0f20c02e6a4444052b44a462155 (patch) | |
tree | 35f30b63534a727ff1ce4cb2d7e3f406f0ced154 /gdb/aix-thread.c | |
parent | 8d2f4b7c3168f79fdef3e50163c91cca43da1381 (diff) | |
download | gdb-4144d36a68bda0f20c02e6a4444052b44a462155.zip gdb-4144d36a68bda0f20c02e6a4444052b44a462155.tar.gz gdb-4144d36a68bda0f20c02e6a4444052b44a462155.tar.bz2 |
gdb: add program_space parameter to lookup_minimal_symbol
>From what I can see, lookup_minimal_symbol doesn't have any dependencies
on the global current state other than the single reference to
current_program_space. Add a program_space parameter and make that
current_program_space reference bubble up one level.
Change-Id: I759415e2f9c74c9627a2fe05bd44eb4147eee6fe
Reviewed-by: Keith Seitz <keiths@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r-- | gdb/aix-thread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 847c900..9e6952b 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -395,7 +395,8 @@ pdc_symbol_addrs (pthdb_user_t user_current_pid, pthdb_symbol_t *symbols, int co symbols[i].addr = 0; else { - bound_minimal_symbol ms = lookup_minimal_symbol (name); + bound_minimal_symbol ms + = lookup_minimal_symbol (current_program_space, name); if (ms.minsym == NULL) { if (debug_aix_thread) @@ -978,7 +979,8 @@ pd_enable (inferior *inf) return; /* Set a breakpoint on the returned stub function. */ - bound_minimal_symbol ms = lookup_minimal_symbol (stub_name); + bound_minimal_symbol ms + = lookup_minimal_symbol (current_program_space, stub_name); if (ms.minsym == NULL) return; data->pd_brk_addr = ms.value_address (); |