<rdar://problem/10605072>
Fixed the command callback override lookup function so we can now override the "process launch" command (or any other multi-word commands).
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156368 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBCommandInterpreter.cpp b/source/API/SBCommandInterpreter.cpp
index 515fb28..598197d 100644
--- a/source/API/SBCommandInterpreter.cpp
+++ b/source/API/SBCommandInterpreter.cpp
@@ -317,9 +317,11 @@
{
if (command_name && command_name[0] && m_opaque_ptr)
{
- CommandObject *cmd_obj = m_opaque_ptr->GetCommandObject(command_name);
+ std::string command_name_str (command_name);
+ CommandObject *cmd_obj = m_opaque_ptr->GetCommandObjectForCommand(command_name_str);
if (cmd_obj)
{
+ assert(command_name_str.empty());
cmd_obj->SetOverrideCallback (callback, baton);
return true;
}