[Lldb-commits] [lldb] r185240 - <rdar://problem/14309010>

Enrico Granata egranata at apple.com
Fri Jun 28 16:33:18 PDT 2013


Author: enrico
Date: Fri Jun 28 18:33:18 2013
New Revision: 185240

URL: http://llvm.org/viewvc/llvm-project?rev=185240&view=rev
Log:
<rdar://problem/14309010>

OS Plugins' __init__ method takes two arguments: (self,process)

I was erroneously passing the session_dict as well as part of my PyCallable changes and that caused plugins to fail to work


Modified:
    lldb/trunk/scripts/Python/python-wrapper.swig

Modified: lldb/trunk/scripts/Python/python-wrapper.swig
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/python-wrapper.swig?rev=185240&r1=185239&r2=185240&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/python-wrapper.swig (original)
+++ lldb/trunk/scripts/Python/python-wrapper.swig Fri Jun 28 18:33:18 2013
@@ -689,7 +689,8 @@ LLDBSWIGPythonCreateOSPlugin
         Py_INCREF(SBProc_PyObj);
         
         PyObject* session_dict = NULL;
-        retval = pfunc(SBProc_PyObj, session_dict = FindSessionDictionary(session_dictionary_name));
+        session_dict = session_dict = FindSessionDictionary(session_dictionary_name);
+        retval = pfunc(SBProc_PyObj);
         
         Py_XINCREF (session_dict);
         





More information about the lldb-commits mailing list