OSDN Git Service

2011-09-02 Pedro Alves <pedro@codesourcery.com>
authorpalves <palves>
Fri, 2 Sep 2011 16:56:28 +0000 (16:56 +0000)
committerpalves <palves>
Fri, 2 Sep 2011 16:56:28 +0000 (16:56 +0000)
commitc3b41f0c36f16bdc74911e585bae894f351bf060
tree83f963ad8223f870ecdb462ec0c1b0686c6e58d7
parent9e012904d24e2e08481c36ef8deabaec9dfd2c9f
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

* top.c: Include interps.h.
(execute_command): If the target can async, but the interpreter is
in sync mode, synchronously wait for the command to finish before
returning.
(execute_command_to_string): Force the interpreter to sync mode.
* infrun.c: Include interps.h.
(fetch_inferior_event): Don't restore the prompt yet if the
interpreter is in sync mode.
* interps.c (interpreter_async): New global.
* interps.h (interpreter_async): Declare.
* inf-loop.c: Include interps.h.
(inferior_event_handler): Don't print the language change or run
breakpoint commands yet if the interpreter in is sync mode.
* main.c (captured_command_loop): Flip the interpreter to async
mode.
* cli/cli-script.c: Include interps.h.
(execute_user_command, while_command, if_command): Force the
interpreter to sync mode.
* python/python.c: Include interps.h.
(python_command, execute_gdb_command): Force the interpreter to
sync mode.
gdb/ChangeLog
gdb/cli/cli-script.c
gdb/inf-loop.c
gdb/infrun.c
gdb/interps.c
gdb/interps.h
gdb/main.c
gdb/python/python.c
gdb/top.c