mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-14 11:13:43 +08:00
From Fernando Nasser:
* infrun.c (handle_inferior_event): Handle "nexti" inside function prologues.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2001-06-28 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
From Fernando Nasser:
|
||||||
|
* infrun.c (handle_inferior_event): Handle "nexti" inside function
|
||||||
|
prologues.
|
||||||
|
|
||||||
2001-06-28 Michael Snyder <msnyder@redhat.com>
|
2001-06-28 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
* infrun.c (handle_inferior_event): Replace prev_pc test in all
|
* infrun.c (handle_inferior_event): Replace prev_pc test in all
|
||||||
|
@ -2755,11 +2755,16 @@ handle_inferior_event (struct execution_control_state *ecs)
|
|||||||
{
|
{
|
||||||
/* It's a subroutine call. */
|
/* It's a subroutine call. */
|
||||||
|
|
||||||
if (step_over_calls == STEP_OVER_NONE)
|
if ((step_over_calls == STEP_OVER_NONE)
|
||||||
|
|| ((step_range_end == 1)
|
||||||
|
&& in_prologue (prev_pc, ecs->stop_func_start)))
|
||||||
{
|
{
|
||||||
/* I presume that step_over_calls is only 0 when we're
|
/* I presume that step_over_calls is only 0 when we're
|
||||||
supposed to be stepping at the assembly language level
|
supposed to be stepping at the assembly language level
|
||||||
("stepi"). Just stop. */
|
("stepi"). Just stop. */
|
||||||
|
/* Also, maybe we just did a "nexti" inside a prolog,
|
||||||
|
so we thought it was a subroutine call but it was not.
|
||||||
|
Stop as well. FENN */
|
||||||
stop_step = 1;
|
stop_step = 1;
|
||||||
print_stop_reason (END_STEPPING_RANGE, 0);
|
print_stop_reason (END_STEPPING_RANGE, 0);
|
||||||
stop_stepping (ecs);
|
stop_stepping (ecs);
|
||||||
|
Reference in New Issue
Block a user