aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1991-11-01 02:16:20 +0000
committerStu Grossman <grossman@cygnus>1991-11-01 02:16:20 +0000
commitd7d1098dcab8fc681e39923b449df759d4866d7e (patch)
treeeb66ca184f5ed6701a08446ff387c12f1e5b6427 /gdb/infrun.c
parent715eb31fa9d767a9ba2fb4cda4c17e658e4b90a2 (diff)
downloadgdb-d7d1098dcab8fc681e39923b449df759d4866d7e.zip
gdb-d7d1098dcab8fc681e39923b449df759d4866d7e.tar.gz
gdb-d7d1098dcab8fc681e39923b449df759d4866d7e.tar.bz2
* infrun.c (wait_for_inferior): another stepi/nexti fix. Ensure
that stop_step is 1 at bottom of main loop. I don't know why this needs to be done, but it helps me sleep better at night.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index e674d4d..bb23c94 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1244,8 +1244,6 @@ wait_for_inferior ()
/* No subroutine call; stop now. */
else
{
- if (step_range_end == 1) break; /* Don't do this for stepi/nexti */
-
/* We've wandered out of the step range (but we haven't done a
subroutine call or return (that's handled elsewhere)). We
don't really want to stop until we encounter the start of a
@@ -1253,7 +1251,8 @@ wait_for_inferior ()
step_range_start and step_range_end, and just continue. */
sal = find_pc_line(stop_pc, 0);
- if (sal.line == 0 || /* Stop now if no line # info */
+ if (step_range_end == 1 || /* Don't do this for stepi/nexti */
+ sal.line == 0 || /* Stop now if no line # info */
(current_line != sal.line
&& stop_pc == sal.pc)) {
stop_step = 1;