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.
This commit is contained in:
Daniel Beer 2012-02-25 08:13:02 +13:00
parent d621ad7050
commit 2a55daf304
1 changed files with 3 additions and 1 deletions

View File

@ -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;