diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-10-02 23:28:54 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-10-02 23:28:54 +0000 |
commit | c4ed33b99b6fc4657b40c3168d2392470012661b (patch) | |
tree | d2bed4d750ef2002ac96e42786504ecf4e0f8731 /gdb/infrun.c | |
parent | cef4f5dd72bc84b609f3cb472e20fbfdc79c65c6 (diff) | |
download | gdb-c4ed33b99b6fc4657b40c3168d2392470012661b.zip gdb-c4ed33b99b6fc4657b40c3168d2392470012661b.tar.gz gdb-c4ed33b99b6fc4657b40c3168d2392470012661b.tar.bz2 |
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 0f0c96b..89a1d23 100644 --- a/gdb/infrun.c +++ b/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); } |