[Lldb-commits] [lldb] r162756 - in /lldb/trunk: lib/Makefile source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp

Filipe Cabecinhas me at filcab.net
Tue Aug 28 06:59:39 PDT 2012


Author: filcab
Date: Tue Aug 28 08:59:38 2012
New Revision: 162756

URL: http://llvm.org/viewvc/llvm-project?rev=162756&view=rev
Log:
Fixes by Daniel Malea.

Modified:
    lldb/trunk/lib/Makefile
    lldb/trunk/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp

Modified: lldb/trunk/lib/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lib/Makefile?rev=162756&r1=162755&r2=162756&view=diff
==============================================================================
--- lldb/trunk/lib/Makefile (original)
+++ lldb/trunk/lib/Makefile Tue Aug 28 08:59:38 2012
@@ -40,6 +40,7 @@
 	lldbPluginObjectContainerBSDArchive.a \
 	lldbPluginObjectFileELF.a \
 	lldbPluginObjectFilePECOFF.a \
+	lldbPluginOperatingSystemPython.a \
 	lldbPluginPlatformGDBServer.a \
 	lldbPluginProcessGDBRemote.a \
 	lldbPluginSymbolFileDWARF.a \

Modified: lldb/trunk/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp?rev=162756&r1=162755&r2=162756&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp (original)
+++ lldb/trunk/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp Tue Aug 28 08:59:38 2012
@@ -214,12 +214,12 @@
 {
     RegisterContextSP reg_ctx_sp;
     if (!m_interpreter || !m_python_object || !thread)
-        return NULL;
+        return RegisterContextSP();
     auto object_sp = m_interpreter->OSPlugin_QueryForRegisterContextData (m_interpreter->MakeScriptObject(m_python_object),
                                                                           thread->GetID());
 
            if (!object_sp)
-        return NULL;
+        return RegisterContextSP();
     
     PythonDataString reg_context_data((PyObject*)object_sp->GetObject());
     if (reg_context_data)





More information about the lldb-commits mailing list