From 2a55daf304a59f38291b0cfa8e4bcf72c05344bf Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Sat, 25 Feb 2012 08:13:02 +1300 Subject: [PATCH] reader: flush stdout between commands. This is neccessary when communicating with the msp430eclipse plugin. It issues a command to start the gdb server and waits for a response before continuing. --- ui/reader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/reader.c b/ui/reader.c index 1110b8d..e2a1c34 100644 --- a/ui/reader.c +++ b/ui/reader.c @@ -188,9 +188,11 @@ void reader_loop(void) want_exit = 0; for (;;) { - char *buf = readline("(mspdebug) "); + char *buf; char tmpbuf[MAX_READER_LINE]; + fflush(stdout); + buf = readline("(mspdebug) "); if (!buf) { printc("\n"); break;