gdb_flush (gdb_stdout);
/* Refresh prev_pc value just prior to resuming. This used to be
- done in stop_stepping, however, setting prev_pc there did not handle
+ done in stop_waiting, however, setting prev_pc there did not handle
scenarios such as inferior function calls or returning from
a function via the return command. In those cases, the prev_pc
value was not set properly for subsequent commands. The prev_pc value
static void check_exception_resume (struct execution_control_state *,
struct frame_info *);
-static void stop_stepping (struct execution_control_state *ecs);
+static void stop_waiting (struct execution_control_state *ecs);
static void prepare_to_wait (struct execution_control_state *ecs);
static void keep_going (struct execution_control_state *ecs);
static void process_event_stop_test (struct execution_control_state *ecs);
The alternatives are:
- 1) stop_stepping and return; to really stop and return to the
+ 1) stop_waiting and return; to really stop and return to the
debugger.
2) keep_going and return; to wait for the next event (set
fprintf_unfiltered (gdb_stdlog, "infrun: TARGET_WAITKIND_NO_RESUMED\n");
stop_print_frame = 0;
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
normal_stop. */
stop_print_frame = 1;
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
}
{
if (debug_infrun)
fprintf_unfiltered (gdb_stdlog, "infrun: quietly stopped\n");
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
singlestep_breakpoints_inserted_p = 0;
cancel_single_step_breakpoints ();
stop_print_frame = 0;
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
/* The following are the only cases in which we keep going;
if (should_resume)
keep_going (ecs);
else
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
process_event_stop_test (ecs);
}
stop_pc = regcache_read_pc (get_thread_regcache (ecs->ptid));
observer_notify_no_history ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
}
if (debug_infrun)
fprintf_unfiltered (gdb_stdlog, "infrun: quietly stopped\n");
stop_print_frame = 1;
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
if (debug_infrun)
fprintf_unfiltered (gdb_stdlog, "infrun: stopped\n");
stop_print_frame = 0;
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
|| ecs->event_thread->suspend.stop_signal == GDB_SIGNAL_0))
{
stop_print_frame = 1;
- stop_stepping (ecs);
+ stop_waiting (ecs);
ecs->event_thread->suspend.stop_signal = GDB_SIGNAL_0;
return;
}
|| (!inf->detaching
&& signal_stop_state (ecs->event_thread->suspend.stop_signal)))
{
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
/* If not going to stop, give terminal back
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
}
return;
resumed. */
ecs->event_thread->stepping_over_breakpoint = 1;
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
case BPSTAT_WHAT_STOP_SILENT:
whether a/the breakpoint is there when the thread is next
resumed. */
ecs->event_thread->stepping_over_breakpoint = 1;
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
case BPSTAT_WHAT_HP_STEP_RESUME:
{
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
}
else
keep_going (ecs);
/* And this works the same backward as frontward. MVS */
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
{
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
switch in assembly mode. */
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
else
fprintf_unfiltered (gdb_stdlog, "infrun: stepi/nexti\n");
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
fprintf_unfiltered (gdb_stdlog, "infrun: no line number info\n");
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
else
{
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
}
return;
}
{
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
}
return;
}
"infrun: stepped to a different line\n");
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
/* We are already there: stop now. */
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
else
/* We're there already. Just stop stepping now. */
ecs->event_thread->control.stop_step = 1;
end_stepping_range ();
- stop_stepping (ecs);
+ stop_waiting (ecs);
}
else
{
}
static void
-stop_stepping (struct execution_control_state *ecs)
+stop_waiting (struct execution_control_state *ecs)
{
if (debug_infrun)
- fprintf_unfiltered (gdb_stdlog, "infrun: stop_stepping\n");
+ fprintf_unfiltered (gdb_stdlog, "infrun: stop_waiting\n");
clear_step_over_info ();
if (e.reason < 0)
{
exception_print (gdb_stderr, e);
- stop_stepping (ecs);
+ stop_waiting (ecs);
return;
}
The rest of the cases are dealt with later on in normal_stop and
print_it_typical. Ideally there should be a call to one of these
print_*_reason functions functions from handle_inferior_event each time
- stop_stepping is called.
+ stop_waiting is called.
Note that we don't call these directly, instead we delegate that to
the interpreters, through observers. Interpreters then call these