aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-loop.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-09-05 14:53:13 +0000
committerPedro Alves <palves@redhat.com>2011-09-05 14:53:13 +0000
commit0f641c01197d8f614a1ecb4a54c7d508f500367a (patch)
tree89330359ed322781a8daa5161afe975b6464504a /gdb/inf-loop.c
parent4a5818a296344d7f6a2ffa1492bc36fbbb7543d3 (diff)
downloadgdb-0f641c01197d8f614a1ecb4a54c7d508f500367a.zip
gdb-0f641c01197d8f614a1ecb4a54c7d508f500367a.tar.gz
gdb-0f641c01197d8f614a1ecb4a54c7d508f500367a.tar.bz2
2011-09-05 Pedro Alves <pedro@codesourcery.com>
* inf-loop.c (execute_command): Don't check if the current thread if running before synchronously waiting for command completion. * infrun.c (fetch_inferior_event): Handle "set exec-done-display" here. (normal_stop): Call async_enable_stdin here. * inf-loop.c (inferior_event_handler): Don't call async_enable_stdin, nor handle "set exec-done-display" here.
Diffstat (limited to 'gdb/inf-loop.c')
-rw-r--r--gdb/inf-loop.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c
index 50a7391..8e49e91 100644
--- a/gdb/inf-loop.c
+++ b/gdb/inf-loop.c
@@ -41,7 +41,6 @@ void
inferior_event_handler (enum inferior_event_type event_type,
gdb_client_data client_data)
{
- int was_sync = 0;
struct cleanup *cleanup_if_error = make_bpstat_clear_actions_cleanup ();
switch (event_type)
@@ -63,7 +62,6 @@ inferior_event_handler (enum inferior_event_type event_type,
break;
case INF_EXEC_COMPLETE:
-
if (!non_stop)
{
/* Unregister the inferior from the event loop. This is done
@@ -73,12 +71,6 @@ inferior_event_handler (enum inferior_event_type event_type,
target_async (NULL, 0);
}
- /* The call to async_enable_stdin below resets 'sync_execution'.
- However, if sync_execution is 1 now, we also need to show the
- prompt below, so save the current value. */
- was_sync = sync_execution;
- async_enable_stdin ();
-
/* Do all continuations associated with the whole inferior (not
a particular thread). */
if (!ptid_equal (inferior_ptid, null_ptid))
@@ -129,12 +121,6 @@ inferior_event_handler (enum inferior_event_type event_type,
}
exception_print (gdb_stderr, e);
}
-
- if (!was_sync
- && exec_done_display_p
- && (ptid_equal (inferior_ptid, null_ptid)
- || !is_running (inferior_ptid)))
- printf_unfiltered (_("completed.\n"));
break;
case INF_EXEC_CONTINUE: