aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-09-22 18:34:05 +0000
committerK. Richard Pixley <rich@cygnus>1993-09-22 18:34:05 +0000
commit07a5991a095f75d6869c8bc62ab0308ad465ad6e (patch)
tree03b754a72e140d138aaf50849be6af2e95e50359 /gdb/infrun.c
parent6deb63abcc4b5122e2204c2d99d0de7850c3bf13 (diff)
downloadgdb-07a5991a095f75d6869c8bc62ab0308ad465ad6e.zip
gdb-07a5991a095f75d6869c8bc62ab0308ad465ad6e.tar.gz
gdb-07a5991a095f75d6869c8bc62ab0308ad465ad6e.tar.bz2
infcmd.c (step_1),
infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef and insert macro.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c10
1 files changed, 1 insertions, 9 deletions
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);