diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2009-11-06 14:26:13 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2009-11-06 14:26:13 +0000 |
commit | c271b6e2b5be29e3fa1e796360cf2a7dc2c31c57 (patch) | |
tree | 2a1755618f6dea09b10d335646ca031b5b5146a8 /gdb/mi/mi-interp.c | |
parent | 23ddb8504aa1845f1c921c2b1b888fd3c4adc5dd (diff) | |
download | gdb-c271b6e2b5be29e3fa1e796360cf2a7dc2c31c57.zip gdb-c271b6e2b5be29e3fa1e796360cf2a7dc2c31c57.tar.gz gdb-c271b6e2b5be29e3fa1e796360cf2a7dc2c31c57.tar.bz2 |
Prevent program output from mix with "^running".
gdb/
* mi/mi-interp.c (mi_on_resume): Output token
and "^running" together, so that nothing else gets
in between.
Diffstat (limited to 'gdb/mi/mi-interp.c')
-rw-r--r-- | gdb/mi/mi-interp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 6fdf292..248cd66 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -438,9 +438,8 @@ mi_on_resume (ptid_t ptid) In future (MI3), we'll be outputting "^done" here. */ if (!running_result_record_printed && mi_proceeded) { - if (current_token) - fputs_unfiltered (current_token, raw_stdout); - fputs_unfiltered ("^running\n", raw_stdout); + fprintf_unfiltered (raw_stdout, "%s^running\n", + current_token ? current_token : ""); } if (PIDGET (ptid) == -1) |