diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/infcmd.c | 3 | ||||
-rw-r--r-- | gdb/infrun.c | 10 |
2 files changed, 2 insertions, 11 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 8cd9940..1df2c8f 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -395,8 +395,7 @@ which has no line number information.\n", name); if (! stop_step) break; #if defined (SHIFT_INST_REGS) - write_register (NNPC_REGNUM, read_register (NPC_REGNUM)); - write_register (NPC_REGNUM, read_register (PC_REGNUM)); + SHIFT_INST_REGS(); #endif } diff --git a/gdb/infrun.c b/gdb/infrun.c index b3484a1..e7d2c42 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1259,15 +1259,7 @@ step_into_function: if (!bpstat_explains_signal (stop_bpstat) && (stop_signal != SIGCLD) && !stopped_by_random_signal) - { - CORE_ADDR pc_contents = read_register (PC_REGNUM); - CORE_ADDR npc_contents = read_register (NPC_REGNUM); - if (pc_contents != npc_contents) - { - write_register (NNPC_REGNUM, npc_contents); - write_register (NPC_REGNUM, pc_contents); - } - } + SHIFT_INST_REGS(); #endif /* SHIFT_INST_REGS */ resume (CURRENTLY_STEPPING (), stop_signal); |