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:
parent
d621ad7050
commit
2a55daf304
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue