[Lldb-commits] [lldb] r107801 - /lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp

Greg Clayton gclayton at apple.com
Wed Jul 7 11:40:03 PDT 2010


Author: gclayton
Date: Wed Jul  7 13:40:03 2010
New Revision: 107801

URL: http://llvm.org/viewvc/llvm-project?rev=107801&view=rev
Log:
Added some comments to clarify where "init_lldb" comes from.

Modified:
    lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp

Modified: lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp?rev=107801&r1=107800&r2=107801&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp (original)
+++ lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp Wed Jul  7 13:40:03 2010
@@ -37,6 +37,8 @@
 #include "lldb/Core/Debugger.h"
 #include "lldb/Target/Process.h"
 
+// This function is in the C++ output file generated by SWIG after it is 
+// run on all of the headers in "lldb/API/SB*.h"
 extern "C" void init_lldb (void);
 
 using namespace lldb;
@@ -183,6 +185,8 @@
 
     m_compiled_module = static_cast<void*>(compiled_module);
 
+    // This function is in the C++ output file generated by SWIG after it is 
+    // run on all of the headers in "lldb/API/SB*.h"
     init_lldb ();
 
     // Update the path python uses to search for modules to include the current directory.





More information about the lldb-commits mailing list