]> Git Repo - binutils.git/blobdiff - gdb/thread.c
* inferior.h (read_pc, write_pc): Remove.
[binutils.git] / gdb / thread.c
index 0ce24c64a9ee2e9004f7af04ff8d7da368978b3f..ffb93bedc088f7445db365e256d3b8af69ba1bfb 100644 (file)
@@ -852,7 +852,7 @@ switch_to_thread (ptid_t ptid)
   if (!ptid_equal (inferior_ptid, null_ptid)
       && !is_exited (ptid)
       && !is_executing (ptid))
-    stop_pc = read_pc ();
+    stop_pc = regcache_read_pc (get_thread_regcache (ptid));
   else
     stop_pc = ~(CORE_ADDR) 0;
 }
This page took 0.024258 seconds and 4 git commands to generate.