diff options
Diffstat (limited to 'lldb/include/lldb/Interpreter/CommandInterpreter.h')
-rw-r--r-- | lldb/include/lldb/Interpreter/CommandInterpreter.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lldb/include/lldb/Interpreter/CommandInterpreter.h b/lldb/include/lldb/Interpreter/CommandInterpreter.h index 8680c1dd3be..dd883a7e76a 100644 --- a/lldb/include/lldb/Interpreter/CommandInterpreter.h +++ b/lldb/include/lldb/Interpreter/CommandInterpreter.h @@ -46,6 +46,14 @@ public: eUnwarnedTruncation = 1, // truncated but did not notify eWarnedTruncation = 2 // truncated and notified }; + + enum CommandTypes + { + eCommandTypesBuiltin = 0x0001, // native commands such as "frame" + eCommandTypesUserDef = 0x0002, // scripted commands + eCommandTypesAliases = 0x0004, // aliases such as "po" + eCommandTypesAllThem = 0xFFFF // all commands + }; void SourceInitFile (bool in_cwd, @@ -63,6 +71,11 @@ public: const lldb::CommandObjectSP &cmd_sp, bool can_replace); + bool + AddUserCommand (const char *name, + const lldb::CommandObjectSP &cmd_sp, + bool can_replace); + lldb::CommandObjectSP GetCommandSPExact (const char *cmd, bool include_aliases); @@ -93,6 +106,12 @@ public: bool RemoveUser (const char *alias_name); + + void + RemoveAllUser () + { + m_user_dict.clear(); + } OptionArgVectorSP GetAliasOptions (const char *alias_name); @@ -239,7 +258,8 @@ public: StringList &matches); void - GetHelp (CommandReturnObject &result); + GetHelp (CommandReturnObject &result, + CommandTypes types = eCommandTypesAllThem); void GetAliasHelp (const char *alias_name, |