diff options
author | Luis Machado <luisgpm@br.ibm.com> | 2012-04-13 20:46:42 +0000 |
---|---|---|
committer | Luis Machado <luisgpm@br.ibm.com> | 2012-04-13 20:46:42 +0000 |
commit | ca7781d2ae089e04d44ed0b14d946dcb651a3cf8 (patch) | |
tree | 3f6a66ecaafcde9d1fcf54f5938fc602d67aa816 /gdb/infrun.c | |
parent | 18f5fd81460b256c3c1c54e2de1d2baa495b3bb8 (diff) | |
download | gdb-ca7781d2ae089e04d44ed0b14d946dcb651a3cf8.zip gdb-ca7781d2ae089e04d44ed0b14d946dcb651a3cf8.tar.gz gdb-ca7781d2ae089e04d44ed0b14d946dcb651a3cf8.tar.bz2 |
2012-04-13 Luis Machado <lgustavo@codesourcery.com>
* infrun.c (resume): Update PC address to the real PC after
preparing to do displaced stepping.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 62f67c9..a7d6c3c 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1789,6 +1789,10 @@ a command like `return' or `jump' to continue execution.")); 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); |