diff options
author | Enrico Granata <egranata@apple.com> | 2016-03-22 22:12:59 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-03-22 22:12:59 +0000 |
commit | bfb75e9bbceae6e872107df5c4e8c367291fdd53 (patch) | |
tree | 3e98a117afabef58f5bbb1db598123cf55fa75f1 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | e87e1c6cdd893cf7481029acb030d90cbd4b3e87 (diff) | |
download | bcm5719-llvm-bfb75e9bbceae6e872107df5c4e8c367291fdd53.tar.gz bcm5719-llvm-bfb75e9bbceae6e872107df5c4e8c367291fdd53.zip |
Make it so that a command alias can actually remove the help/long help from its parent command by setting itself to an empty help string
llvm-svn: 264108
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index 09008756cfe..f6b2144eae0 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -1345,7 +1345,7 @@ public: std::string docstring; m_fetched_help_long = scripter->GetDocumentationForItem(m_function_name.c_str(),docstring); if (!docstring.empty()) - SetHelpLong(docstring); + SetHelpLong(docstring.c_str()); } } return CommandObjectRaw::GetHelpLong(); @@ -1446,7 +1446,7 @@ public: std::string docstring; m_fetched_help_short = scripter->GetShortHelpForCommandObject(m_cmd_obj_sp,docstring); if (!docstring.empty()) - SetHelp(docstring); + SetHelp(docstring.c_str()); } } return CommandObjectRaw::GetHelp(); @@ -1463,7 +1463,7 @@ public: std::string docstring; m_fetched_help_long = scripter->GetLongHelpForCommandObject(m_cmd_obj_sp,docstring); if (!docstring.empty()) - SetHelpLong(docstring); + SetHelpLong(docstring.c_str()); } } return CommandObjectRaw::GetHelpLong(); |