2002-10-02 Andrew Cagney <ac131313@redhat.com>

* infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
	* gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
	* gdbarch.h, gdbarch.c: Re-generate.
This commit is contained in:
Andrew Cagney
2002-10-02 23:28:54 +00:00
parent cef4f5dd72
commit c4ed33b99b
5 changed files with 59 additions and 7 deletions

View File

@ -870,13 +870,14 @@ resume (int step, enum target_signal sig)
resume_ptid = inferior_ptid;
}
#ifdef CANNOT_STEP_BREAKPOINT
/* Most targets can step a breakpoint instruction, thus executing it
normally. But if this one cannot, just continue and we will hit
it anyway. */
if (step && breakpoints_inserted && breakpoint_here_p (read_pc ()))
step = 0;
#endif
if (CANNOT_STEP_BREAKPOINT)
{
/* Most targets can step a breakpoint instruction, thus
executing it normally. But if this one cannot, just
continue and we will hit it anyway. */
if (step && breakpoints_inserted && breakpoint_here_p (read_pc ()))
step = 0;
}
target_resume (resume_ptid, step, sig);
}