diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectSyntax.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSyntax.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectSyntax.cpp b/lldb/source/Commands/CommandObjectSyntax.cpp index 338671b9571..b2930c29f6e 100644 --- a/lldb/source/Commands/CommandObjectSyntax.cpp +++ b/lldb/source/Commands/CommandObjectSyntax.cpp @@ -76,13 +76,13 @@ bool CommandObjectSyntax::DoExecute(Args &command, 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 { |