mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 03:42:22 +08:00
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:
15
gdb/infrun.c
15
gdb/infrun.c
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user