[Lldb-commits] [lldb] r167030 - /lldb/trunk/examples/plugins/commands/fooplugin.cpp
Enrico Granata
egranata at apple.com
Tue Oct 30 11:01:15 PDT 2012
Author: enrico
Date: Tue Oct 30 13:01:15 2012
New Revision: 167030
URL: http://llvm.org/viewvc/llvm-project?rev=167030&view=rev
Log:
Replace printf with result.Printf, so that the plugin shows its output with any configuration of the LLDB I/O streams (esp. useful in graphic environments such as Xcode)
Modified:
lldb/trunk/examples/plugins/commands/fooplugin.cpp
Modified: lldb/trunk/examples/plugins/commands/fooplugin.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/plugins/commands/fooplugin.cpp?rev=167030&r1=167029&r2=167030&view=diff
==============================================================================
--- lldb/trunk/examples/plugins/commands/fooplugin.cpp (original)
+++ lldb/trunk/examples/plugins/commands/fooplugin.cpp Tue Oct 30 13:01:15 2012
@@ -35,7 +35,7 @@
const char* arg = *command;
while (arg)
{
- printf("%s\n",arg);
+ result.Printf("%s\n",arg);
arg = *(++command);
}
return true;
More information about the lldb-commits
mailing list