* infrun.c (resume): Update PC address to the real PC after
preparing to do displaced stepping.
+2012-04-13 Luis Machado <lgustavo@codesourcery.com>
+
+ * infrun.c (resume): Update PC address to the real PC after
+ preparing to do displaced stepping.
+
2012-04-12 Doug Evans <dje@google.com>
* dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
return;
}
+ /* Update pc to reflect the new address from which we will execute
+ instructions due to displaced stepping. */
+ pc = regcache_read_pc (get_thread_regcache (inferior_ptid));
+
displaced = get_displaced_stepping_state (ptid_get_pid (inferior_ptid));
step = gdbarch_displaced_step_hw_singlestep (gdbarch,
displaced->step_closure);