diff options
author | Pedro Alves <palves@redhat.com> | 2011-05-20 16:31:31 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-05-20 16:31:31 +0000 |
commit | 09cee04be9e51b992fd835e7fa671d3b65448a6b (patch) | |
tree | fe2d3c07280753606639cd25a9d182906b5ff68f /gdb/mi | |
parent | 751b8ce122ef06e9bd673542e7876f44dcd0165c (diff) | |
download | gdb-09cee04be9e51b992fd835e7fa671d3b65448a6b.zip gdb-09cee04be9e51b992fd835e7fa671d3b65448a6b.tar.gz gdb-09cee04be9e51b992fd835e7fa671d3b65448a6b.tar.bz2 |
2011-05-20 Pedro Alves <pedro@codesourcery.com>
gdb/
* infcmd.c: Include "inf-loop.h".
(step_once): When stepping into an inline subroutine, pretend the
target has run. If the target can async, switch the inferior
event loop to INF_EXEC_COMPLETE.
* inferior.h (user_visible_resume_ptid): Declare.
* infrun.c (user_visible_resume_ptid): New function, factored out
from `resume'.
(resume): Use it.
* mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
that the current thread is running. Merge async and sync
branches.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-main.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 5181273..4d1e3f9 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -2162,18 +2162,9 @@ mi_execute_async_cli_command (char *cli_command, char **argv, int argc) execute_command ( /*ui */ run, 0 /*from_tty */ ); - if (target_can_async_p ()) - { - /* If we're not executing, an exception should have been throw. */ - gdb_assert (is_running (inferior_ptid)); - do_cleanups (old_cleanups); - } - else - { - /* Do this before doing any printing. It would appear that some - print code leaves garbage around in the buffer. */ - do_cleanups (old_cleanups); - } + /* Do this before doing any printing. It would appear that some + print code leaves garbage around in the buffer. */ + do_cleanups (old_cleanups); } void |