diff options
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/include/lldb/Interpreter/CommandInterpreter.h | 2 | ||||
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lldb/include/lldb/Interpreter/CommandInterpreter.h b/lldb/include/lldb/Interpreter/CommandInterpreter.h index a0144000795..137df8e46ed 100644 --- a/lldb/include/lldb/Interpreter/CommandInterpreter.h +++ b/lldb/include/lldb/Interpreter/CommandInterpreter.h @@ -278,7 +278,7 @@ public: bool UserCommandExists (const char *cmd); - bool + CommandAlias* AddAlias (const char *alias_name, lldb::CommandObjectSP& command_obj_sp, const char *args_string = nullptr); diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 5127d19664f..08c864c1dca 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -217,7 +217,7 @@ CommandInterpreter::Initialize () cmd_obj_sp = GetCommandSPExact ("_regexp-break",false); if (cmd_obj_sp) - AddAlias ("b", cmd_obj_sp); + AddAlias ("b", cmd_obj_sp)->SetSyntax(cmd_obj_sp->GetSyntax()); cmd_obj_sp = GetCommandSPExact ("_regexp-tbreak",false); if (cmd_obj_sp) @@ -1049,7 +1049,7 @@ CommandInterpreter::UserCommandExists (const char *cmd) return m_user_dict.find(cmd) != m_user_dict.end(); } -bool +CommandAlias* CommandInterpreter::AddAlias (const char *alias_name, lldb::CommandObjectSP& command_obj_sp, const char *args_string) @@ -1064,11 +1064,11 @@ CommandInterpreter::AddAlias (const char *alias_name, if (command_alias_up && command_alias_up->IsValid()) { - m_alias_dict[alias_name] = CommandObjectSP(command_alias_up.release()); - return true; + m_alias_dict[alias_name] = CommandObjectSP(command_alias_up.get()); + return command_alias_up.release(); } - return false; + return nullptr; } bool |