[Lldb-commits] [lldb] r135395 - /lldb/trunk/scripts/lldb.swig

Enrico Granata granata.enrico at gmail.com
Mon Jul 18 09:24:10 PDT 2011


Author: enrico
Date: Mon Jul 18 11:24:10 2011
New Revision: 135395

URL: http://llvm.org/viewvc/llvm-project?rev=135395&view=rev
Log:
Runtime errors in Python scripts were not being shown; this fix makes them print out to ease correcting errors

Modified:
    lldb/trunk/scripts/lldb.swig

Modified: lldb/trunk/scripts/lldb.swig
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/lldb.swig?rev=135395&r1=135394&r2=135395&view=diff
==============================================================================
--- lldb/trunk/scripts/lldb.swig (original)
+++ lldb/trunk/scripts/lldb.swig Mon Jul 18 11:24:10 2011
@@ -463,22 +463,26 @@
                 }
                 else if (PyErr_Occurred ())
                 {
+                    PyErr_Print();
                     PyErr_Clear();
                 }
                 Py_INCREF (session_dict);
             }
             else if (PyErr_Occurred())
             {
+                PyErr_Print();
                 PyErr_Clear();
             }
         }
         else if (PyErr_Occurred())
         {
+            PyErr_Print();
             PyErr_Clear();
         }
     }
     else if (PyErr_Occurred ())
     {
+        PyErr_Print();
         PyErr_Clear ();
     }
     return retval;





More information about the lldb-commits mailing list