diff options
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 5c0e3f5..0580fc6 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -996,7 +996,8 @@ prepare_one_step (thread_info *tp, struct step_command_fsm *sm) if (sym->aclass () == LOC_BLOCK) { const block *block = sym->value_block (); - if (block->end () < tp->control.step_range_end) + if (block->end () < tp->control.step_range_end + && block->end () > tp->control.step_range_start) tp->control.step_range_end = block->end (); } } |