mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-14 19:38:01 +08:00
* mi-main.c (mi_execute_command): Flush output after ``(gdb)''
prompt. Bug reported by David Whedon. (mi_execute_async_cli_command): Ditto. (mi_exec_async_cli_cmd_continuation): Ditto. (mi_command_loop): Ditto.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2001-07-12 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* mi-main.c (mi_execute_command): Flush output after ``(gdb)''
|
||||||
|
prompt. Bug reported by David Whedon.
|
||||||
|
(mi_execute_async_cli_command): Ditto.
|
||||||
|
(mi_exec_async_cli_cmd_continuation): Ditto.
|
||||||
|
(mi_command_loop): Ditto.
|
||||||
|
|
||||||
2001-07-10 Mark Kettenis <kettenis@gnu.org>
|
2001-07-10 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
|
* mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
|
||||||
|
@ -1164,8 +1164,8 @@ mi_execute_command (char *cmd, int from_tty)
|
|||||||
mi_parse_free (command);
|
mi_parse_free (command);
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_flush (raw_stdout);
|
|
||||||
fputs_unfiltered ("(gdb) \n", raw_stdout);
|
fputs_unfiltered ("(gdb) \n", raw_stdout);
|
||||||
|
gdb_flush (raw_stdout);
|
||||||
/* print any buffered hook code */
|
/* print any buffered hook code */
|
||||||
/* ..... */
|
/* ..... */
|
||||||
}
|
}
|
||||||
@ -1296,6 +1296,7 @@ mi_execute_async_cli_command (char *mi, char *args, int from_tty)
|
|||||||
fputs_unfiltered (last_async_command, raw_stdout);
|
fputs_unfiltered (last_async_command, raw_stdout);
|
||||||
fputs_unfiltered ("^running\n", raw_stdout);
|
fputs_unfiltered ("^running\n", raw_stdout);
|
||||||
fputs_unfiltered ("(gdb) \n", raw_stdout);
|
fputs_unfiltered ("(gdb) \n", raw_stdout);
|
||||||
|
gdb_flush (raw_stdout);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1337,6 +1338,7 @@ mi_exec_async_cli_cmd_continuation (struct continuation_arg *arg)
|
|||||||
mi_out_put (uiout, raw_stdout);
|
mi_out_put (uiout, raw_stdout);
|
||||||
fputs_unfiltered ("\n", raw_stdout);
|
fputs_unfiltered ("\n", raw_stdout);
|
||||||
fputs_unfiltered ("(gdb) \n", raw_stdout);
|
fputs_unfiltered ("(gdb) \n", raw_stdout);
|
||||||
|
gdb_flush (raw_stdout);
|
||||||
do_exec_cleanups (ALL_CLEANUPS);
|
do_exec_cleanups (ALL_CLEANUPS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1464,6 +1466,7 @@ mi_command_loop (int mi_version)
|
|||||||
|
|
||||||
/* Tell the world that we're alive */
|
/* Tell the world that we're alive */
|
||||||
fputs_unfiltered ("(gdb) \n", raw_stdout);
|
fputs_unfiltered ("(gdb) \n", raw_stdout);
|
||||||
|
gdb_flush (raw_stdout);
|
||||||
|
|
||||||
if (!event_loop_p)
|
if (!event_loop_p)
|
||||||
simplified_command_loop (mi_input, mi_execute_command);
|
simplified_command_loop (mi_input, mi_execute_command);
|
||||||
|
Reference in New Issue
Block a user