diff options
author | Greg Clayton <gclayton@apple.com> | 2012-05-08 04:29:20 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-05-08 04:29:20 +0000 |
commit | af6f2755ab244e54838fde403abfbd6f711d12db (patch) | |
tree | 9ff347e301577d0cd36d47313481e515c39375be /lldb/source/API/SBCommandInterpreter.cpp | |
parent | 740b0c297c3616643a0018c5d145721db82ba8dd (diff) | |
download | llvm-af6f2755ab244e54838fde403abfbd6f711d12db.zip llvm-af6f2755ab244e54838fde403abfbd6f711d12db.tar.gz llvm-af6f2755ab244e54838fde403abfbd6f711d12db.tar.bz2 |
<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
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
-rw-r--r-- | lldb/source/API/SBCommandInterpreter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp index 515fb28..598197d 100644 --- a/lldb/source/API/SBCommandInterpreter.cpp +++ b/lldb/source/API/SBCommandInterpreter.cpp @@ -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; } |