diff options
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 6f5338c..f455af2 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3932,7 +3932,6 @@ fetch_inferior_event (void *client_data) struct inferior *inf = find_inferior_ptid (ecs->ptid); int should_stop = 1; struct thread_info *thr = ecs->event_thread; - int should_notify_stop = 1; delete_just_stopped_threads_infrun_breakpoints (); @@ -3950,6 +3949,9 @@ fetch_inferior_event (void *client_data) } else { + int should_notify_stop = 1; + int proceeded = 0; + clean_up_just_stopped_threads_fsms (ecs); if (thr != NULL && thr->thread_fsm != NULL) @@ -3960,17 +3962,15 @@ fetch_inferior_event (void *client_data) if (should_notify_stop) { - int proceeded = 0; - /* We may not find an inferior if this was a process exit. */ if (inf == NULL || inf->control.stop_soon == NO_STOP_QUIETLY) proceeded = normal_stop (); + } - if (!proceeded) - { - inferior_event_handler (INF_EXEC_COMPLETE, NULL); - cmd_done = 1; - } + if (!proceeded) + { + inferior_event_handler (INF_EXEC_COMPLETE, NULL); + cmd_done = 1; } } } |