mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-22 10:31:38 +00:00
infcmd.c (step_1),
infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef and insert macro.
This commit is contained in:
parent
6deb63abcc
commit
07a5991a09
@ -395,8 +395,7 @@ which has no line number information.\n", name);
|
|||||||
if (! stop_step)
|
if (! stop_step)
|
||||||
break;
|
break;
|
||||||
#if defined (SHIFT_INST_REGS)
|
#if defined (SHIFT_INST_REGS)
|
||||||
write_register (NNPC_REGNUM, read_register (NPC_REGNUM));
|
SHIFT_INST_REGS();
|
||||||
write_register (NPC_REGNUM, read_register (PC_REGNUM));
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
gdb/infrun.c
10
gdb/infrun.c
@ -1259,15 +1259,7 @@ step_into_function:
|
|||||||
if (!bpstat_explains_signal (stop_bpstat)
|
if (!bpstat_explains_signal (stop_bpstat)
|
||||||
&& (stop_signal != SIGCLD)
|
&& (stop_signal != SIGCLD)
|
||||||
&& !stopped_by_random_signal)
|
&& !stopped_by_random_signal)
|
||||||
{
|
SHIFT_INST_REGS();
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* SHIFT_INST_REGS */
|
#endif /* SHIFT_INST_REGS */
|
||||||
|
|
||||||
resume (CURRENTLY_STEPPING (), stop_signal);
|
resume (CURRENTLY_STEPPING (), stop_signal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user