Fix resolving GNU ifunc bp locations when inferior runs resolver
[deliverable/binutils-gdb.git] / gdb / elfread.c
index e724f347b9638b50b9f5c0e432058940edb5b803..e7925a3bc443a8a58b30d55a4db714552fb7e047 100644 (file)
@@ -1026,7 +1026,8 @@ elf_gnu_ifunc_resolver_return_stop (struct breakpoint *b)
 
   b->type = bp_breakpoint;
   update_breakpoint_locations (b, current_program_space,
-                              find_pc_line (resolved_pc, 0), {});
+                              find_function_start_sal (resolved_pc, NULL, true),
+                              {});
 }
 
 /* A helper function for elf_symfile_read that reads the minimal
This page took 0.023782 seconds and 4 git commands to generate.