2011-05-20 Pedro Alves <pedro@codesourcery.com>
gdb/ * infcmd.c (step_1): Simplify synchronous case.
This commit is contained in:
parent
67e9eb74af
commit
751b8ce122
2 changed files with 15 additions and 13 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2011-05-20 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* infcmd.c (step_1): Simplify synchronous case.
|
||||||
|
|
||||||
2011-05-20 Pedro Alves <pedro@codesourcery.com>
|
2011-05-20 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* tracepoint.c: Include exceptions.h.
|
* tracepoint.c: Include exceptions.h.
|
||||||
|
|
24
gdb/infcmd.c
24
gdb/infcmd.c
|
@ -889,23 +889,21 @@ step_1 (int skip_subroutines, int single_inst, char *count_string)
|
||||||
{
|
{
|
||||||
for (; count > 0; count--)
|
for (; count > 0; count--)
|
||||||
{
|
{
|
||||||
struct thread_info *tp;
|
|
||||||
|
|
||||||
step_once (skip_subroutines, single_inst, count, thread);
|
step_once (skip_subroutines, single_inst, count, thread);
|
||||||
|
|
||||||
if (target_has_execution
|
if (!target_has_execution)
|
||||||
&& !ptid_equal (inferior_ptid, null_ptid))
|
break;
|
||||||
tp = inferior_thread ();
|
|
||||||
else
|
else
|
||||||
tp = NULL;
|
|
||||||
|
|
||||||
if (!tp || !tp->control.stop_step || !tp->step_multi)
|
|
||||||
{
|
{
|
||||||
/* If we stopped for some reason that is not stepping
|
struct thread_info *tp = inferior_thread ();
|
||||||
there are no further steps to make. */
|
|
||||||
if (tp)
|
if (!tp->control.stop_step || !tp->step_multi)
|
||||||
tp->step_multi = 0;
|
{
|
||||||
break;
|
/* If we stopped for some reason that is not stepping
|
||||||
|
there are no further steps to make. */
|
||||||
|
tp->step_multi = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue