mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
<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). llvm-svn: 156368
This commit is contained in:
@@ -317,9 +317,11 @@ SBCommandInterpreter::SetCommandOverrideCallback (const char *command_name,
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user