summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-03-13 22:32:11 +0000
committerEnrico Granata <egranata@apple.com>2015-03-13 22:32:11 +0000
commitcc342da5743521650f45697281bbfac353faca7d (patch)
tree2111a8fbd46de973217d4bbd8edec4911c1dbb38
parent2fc62ed37db98846f4b4accf34d6f6db648da7fd (diff)
downloadbcm5719-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
-rw-r--r--lldb/include/lldb/API/SBCommandInterpreter.h9
-rw-r--r--lldb/source/API/SBCommandInterpreter.cpp22
2 files changed, 31 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBCommandInterpreter.h b/lldb/include/lldb/API/SBCommandInterpreter.h
index d537dcfb462..f688c64250e 100644
--- a/lldb/include/lldb/API/SBCommandInterpreter.h
+++ b/lldb/include/lldb/API/SBCommandInterpreter.h
@@ -266,6 +266,15 @@ public:
const char*
GetHelp ();
+ const char*
+ GetHelpLong ();
+
+ void
+ SetHelp (const char*);
+
+ void
+ SetHelpLong (const char*);
+
lldb::SBCommand
AddMultiwordCommand (const char* name, const char* help = NULL);
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)
{
OpenPOWER on IntegriCloud