[Lldb-commits] [lldb] r287016 - One more fix for Printf. Apparently I fail at incremental builds.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 15 12:11:01 PST 2016
Author: zturner
Date: Tue Nov 15 14:11:01 2016
New Revision: 287016
URL: http://llvm.org/viewvc/llvm-project?rev=287016&view=rev
Log:
One more fix for Printf. Apparently I fail at incremental builds.
Modified:
lldb/trunk/source/Commands/CommandObjectSyntax.cpp
Modified: lldb/trunk/source/Commands/CommandObjectSyntax.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectSyntax.cpp?rev=287016&r1=287015&r2=287016&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectSyntax.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectSyntax.cpp Tue Nov 15 14:11:01 2016
@@ -76,13 +76,13 @@ bool CommandObjectSyntax::DoExecute(Args
if (all_okay && (cmd_obj != nullptr)) {
Stream &output_strm = result.GetOutputStream();
if (cmd_obj->GetOptions() != nullptr) {
- output_strm.Printf("\nSyntax: %s\n", cmd_obj->GetSyntax());
+ output_strm.Printf("\nSyntax: %s\n", cmd_obj->GetSyntax().str().c_str());
output_strm.Printf(
"(Try 'help %s' for more information on command options syntax.)\n",
cmd_obj->GetCommandName().str().c_str());
result.SetStatus(eReturnStatusSuccessFinishNoResult);
} else {
- output_strm.Printf("\nSyntax: %s\n", cmd_obj->GetSyntax());
+ output_strm.Printf("\nSyntax: %s\n", cmd_obj->GetSyntax().str().c_str());
result.SetStatus(eReturnStatusSuccessFinishNoResult);
}
} else {
More information about the lldb-commits
mailing list