aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 5c926de..dfcee43 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -525,7 +525,8 @@ solib_map_sections (solib &so)
abfd = nullptr;
if (abfd == nullptr)
- abfd = find_objfile_by_build_id (mapped_file_info->build_id (),
+ abfd = find_objfile_by_build_id (current_program_space,
+ mapped_file_info->build_id (),
so.so_name.c_str ());
if (abfd == nullptr && mismatch)