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

Enrico Granata egranata at apple.com
Thu Sep 20 16:23:56 PDT 2012


Author: enrico
Date: Thu Sep 20 18:23:55 2012
New Revision: 164334

URL: http://llvm.org/viewvc/llvm-project?rev=164334&view=rev
Log:
Fixing a logic error where we would incorrectly show the newly crafted function not found error for a Python function in some cases where the function actually existed and had an empty docstring

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=164334&r1=164333&r2=164334&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp (original)
+++ lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp Thu Sep 20 18:23:55 2012
@@ -2555,9 +2555,10 @@
     
     if (ExecuteOneLineWithReturn (command.c_str(),
                                  ScriptInterpreter::eScriptReturnTypeCharStrOrNone,
-                                 &result_ptr, false) && result_ptr)
+                                 &result_ptr, false))
     {
-        dest.assign(result_ptr);
+        if (result_ptr)
+            dest.assign(result_ptr);
         return true;
     }
     else





More information about the lldb-commits mailing list