diff options
author | Pedro Alves <palves@redhat.com> | 2011-09-05 14:53:13 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-09-05 14:53:13 +0000 |
commit | 0f641c01197d8f614a1ecb4a54c7d508f500367a (patch) | |
tree | 89330359ed322781a8daa5161afe975b6464504a /gdb/top.c | |
parent | 4a5818a296344d7f6a2ffa1492bc36fbbb7543d3 (diff) | |
download | gdb-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/top.c')
-rw-r--r-- | gdb/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -447,7 +447,7 @@ execute_command (char *p, int from_tty) command's list, running command hooks or similars), and we just ran a synchronous command that started the target, wait for that command to end. */ - if (!interpreter_async && sync_execution && is_running (inferior_ptid)) + if (!interpreter_async && sync_execution) { while (gdb_do_one_event () >= 0) if (!sync_execution) |