diff options
author | Jim Ingham <jingham@apple.com> | 2011-02-19 02:53:09 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-02-19 02:53:09 +0000 |
commit | 85e8b8149243052c721c97ad97ebda82867071a4 (patch) | |
tree | 25a82ef1308098b9affee9a484358d849764580f /lldb/source/Commands/CommandObjectVersion.cpp | |
parent | 21f347e7296e9aeda3a6880fb576cf01f85d8de7 (diff) | |
download | llvm-85e8b8149243052c721c97ad97ebda82867071a4.zip llvm-85e8b8149243052c721c97ad97ebda82867071a4.tar.gz llvm-85e8b8149243052c721c97ad97ebda82867071a4.tar.bz2 |
- Changed all the places where CommandObjectReturn was exporting a StreamString to just exporting
a Stream, and then added GetOutputData & GetErrorData to get the accumulated data.
- Added a StreamTee that will tee output to two provided lldb::StreamSP's.
- Made the CommandObjectReturn use this so you can Tee the results immediately to
the debuggers output file, as well as saving up the results to return when the command
is done executing.
- HandleCommands now uses this so that if you have a set of commands that continue the target
you will see the commands come out as they are processed.
- The Driver now uses this to output the command results as you go, which makes the interface
more reactive seeming.
llvm-svn: 126015
Diffstat (limited to 'lldb/source/Commands/CommandObjectVersion.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectVersion.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectVersion.cpp b/lldb/source/Commands/CommandObjectVersion.cpp index 5e159e1..99b92e7 100644 --- a/lldb/source/Commands/CommandObjectVersion.cpp +++ b/lldb/source/Commands/CommandObjectVersion.cpp @@ -40,8 +40,7 @@ CommandObjectVersion::Execute CommandReturnObject &result ) { - StreamString &output_stream = result.GetOutputStream(); - output_stream.Printf ("%s\n", lldb_private::GetVersion()); + result.AppendMessageWithFormat ("%s\n", lldb_private::GetVersion()); result.SetStatus (eReturnStatusSuccessFinishResult); return true; } |