diff options
author | Enrico Granata <granata.enrico@gmail.com> | 2011-08-17 01:30:04 +0000 |
---|---|---|
committer | Enrico Granata <granata.enrico@gmail.com> | 2011-08-17 01:30:04 +0000 |
commit | 99f0b8f9351889901fbe7fd16104543bd4c1bbf1 (patch) | |
tree | 1b8e0f09fe0711d4d6de2ebea80ccec1fee4796f /lldb/source/Interpreter/CommandObject.cpp | |
parent | b3457c9eefdea3e9e9386628bc6cd31f85478172 (diff) | |
download | bcm5719-llvm-99f0b8f9351889901fbe7fd16104543bd4c1bbf1.tar.gz bcm5719-llvm-99f0b8f9351889901fbe7fd16104543bd4c1bbf1.zip |
When defining a scripted command, it is possible to provide a docstring and that will be used as the help text for the command
If no docstring is provided, a default help text is created
LLDB will refuse to create scripted commands if the scripting language is anything but Python
Some additional comments in AppleObjCRuntimeV2.cpp to describe the memory layout expected by the dynamic type lookup code
llvm-svn: 137801
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObject.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index 635d9a58838..1607d8e11c2 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -129,6 +129,12 @@ CommandObject::SetHelpLong (const char *cstr) } void +CommandObject::SetHelpLong (std::string str) +{ + m_cmd_help_long = str; +} + +void CommandObject::SetSyntax (const char *cstr) { m_cmd_syntax = cstr; |