diff options
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r-- | gdb/i386-linux-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index 7a2be09..a8d0295 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -744,7 +744,8 @@ i386_linux_resume (ptid_t ptid, int step, enum target_signal signal) request = PTRACE_SINGLESTEP; - regcache_cooked_read_unsigned (regcache, PC_REGNUM, &pc); + regcache_cooked_read_unsigned (regcache, + gdbarch_pc_regnum (current_gdbarch), &pc); /* Returning from a signal trampoline is done by calling a special system call (sigreturn or rt_sigreturn, see |