diff options
author | Enrico Granata <egranata@apple.com> | 2015-03-13 22:32:11 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-03-13 22:32:11 +0000 |
commit | cc342da5743521650f45697281bbfac353faca7d (patch) | |
tree | 2111a8fbd46de973217d4bbd8edec4911c1dbb38 /lldb/source/API | |
parent | 2fc62ed37db98846f4b4accf34d6f6db648da7fd (diff) | |
download | bcm5719-llvm-cc342da5743521650f45697281bbfac353faca7d.tar.gz bcm5719-llvm-cc342da5743521650f45697281bbfac353faca7d.zip |
Add accessors on SBCommand to get and set the help texts for a command
llvm-svn: 232226
Diffstat (limited to 'lldb/source/API')
-rw-r--r-- | lldb/source/API/SBCommandInterpreter.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp index a2afd5361f7..f8716108a08 100644 --- a/lldb/source/API/SBCommandInterpreter.cpp +++ b/lldb/source/API/SBCommandInterpreter.cpp @@ -794,6 +794,28 @@ SBCommand::GetHelp () return NULL; } +const char* +SBCommand::GetHelpLong () +{ + if (IsValid ()) + return m_opaque_sp->GetHelpLong (); + return NULL; +} + +void +SBCommand::SetHelp (const char* help) +{ + if (IsValid()) + m_opaque_sp->SetHelp(help); +} + +void +SBCommand::SetHelpLong (const char* help) +{ + if (IsValid()) + m_opaque_sp->SetHelpLong(help); +} + lldb::SBCommand SBCommand::AddMultiwordCommand (const char* name, const char* help) { |