[Lldb-commits] [lldb] r156368 - /lldb/trunk/source/API/SBCommandInterpreter.cpp

Greg Clayton gclayton at apple.com
Mon May 7 21:29:20 PDT 2012


Author: gclayton
Date: Mon May  7 23:29:20 2012
New Revision: 156368

URL: http://llvm.org/viewvc/llvm-project?rev=156368&view=rev
Log:
<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).


Modified:
    lldb/trunk/source/API/SBCommandInterpreter.cpp

Modified: lldb/trunk/source/API/SBCommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBCommandInterpreter.cpp?rev=156368&r1=156367&r2=156368&view=diff
==============================================================================
--- lldb/trunk/source/API/SBCommandInterpreter.cpp (original)
+++ lldb/trunk/source/API/SBCommandInterpreter.cpp Mon May  7 23:29:20 2012
@@ -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;
         }





More information about the lldb-commits mailing list