diff options
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 2d275f2..3122f06 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -2394,7 +2394,8 @@ enable_break (struct svr4_info *info, int from_tty) if (!load_addr_found) { struct regcache *regcache - = get_thread_arch_regcache (inferior_ptid, target_gdbarch ()); + = get_thread_arch_regcache (current_inferior ()->process_target (), + inferior_ptid, target_gdbarch ()); load_addr = (regcache_read_pc (regcache) - exec_entry_point (tmp_bfd.get (), tmp_bfd_target)); |