Use line-buffering on stdout, regardless of the output device.
This commit is contained in:
parent
355948af16
commit
e5028a4d83
|
@ -342,6 +342,11 @@ int main(int argc, char **argv)
|
||||||
struct cmdline_args args = {0};
|
struct cmdline_args args = {0};
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
/* Line buffering is required for tools which read mspdebug's
|
||||||
|
* output (like msp430eclipse).
|
||||||
|
*/
|
||||||
|
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||||
|
|
||||||
opdb_reset();
|
opdb_reset();
|
||||||
ctrlc_init();
|
ctrlc_init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue