* dwarf2read.c (follow_die_ref): Add comment.
[deliverable/binutils-gdb.git] / gdb / linux-fork.c
index 861917d81bf491692cf685f35dcaa459b434f6c0..a020743ab397b4d48f0273c5292b596f59a17779 100644 (file)
@@ -250,7 +250,7 @@ fork_load_infrun_state (struct fork_info *fp)
   registers_changed ();
   reinit_frame_cache ();
 
-  stop_pc = read_pc ();
+  stop_pc = regcache_read_pc (get_current_regcache ());
   nullify_last_target_wait_ptid ();
 
   /* Now restore the file positions of open file descriptors.  */
@@ -280,7 +280,7 @@ fork_save_infrun_state (struct fork_info *fp, int clobber_regs)
 
   fp->savedregs = regcache_dup (get_current_regcache ());
   fp->clobber_regs = clobber_regs;
-  fp->pc = read_pc ();
+  fp->pc = regcache_read_pc (get_current_regcache ());
 
   if (clobber_regs)
     {
@@ -501,7 +501,7 @@ info_forks_command (char *arg, int from_tty)
       if (ptid_equal (fp->ptid, inferior_ptid))
        {
          printf_filtered ("* ");
-         pc = read_pc ();
+         pc = regcache_read_pc (get_current_regcache ());
        }
       else
        {
This page took 0.025239 seconds and 4 git commands to generate.