diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2009-11-06 14:26:09 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2009-11-06 14:26:09 +0000 |
commit | a8e1b21cafa0fd186edc16064cb9c1f7eca8fd3c (patch) | |
tree | b8ec701e8e8be784b6e68b9acc976cc8f01712f8 | |
parent | fd1bcc3049b8672efe0d2c561d60f83fd7c68f38 (diff) | |
download | gdb-a8e1b21cafa0fd186edc16064cb9c1f7eca8fd3c.tar.gz |
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.
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/mi/mi-interp.c | 5 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b62d220cab6..7ee0dd9a514 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2009-11-06 Vladimir Prus <vladimir@codesourcery.com> + + 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. + 2009-11-05 Daniel Jacobowitz <dan@codesourcery.com> * dwarf2read.c (struct dwarf2_cu): Remove ranges_offset and diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 6fdf292dba7..248cd66e427 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) |