summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2011-07-18 16:24:10 +0000
committerEnrico Granata <granata.enrico@gmail.com>2011-07-18 16:24:10 +0000
commit03f16a09bfce5eee342f22816ccae807fabfcf51 (patch)
tree5959f721ef24eb6a0a05792619b921463eac87b4 /lldb/scripts
parente5f440204b9eb34c061689fecf75e167e6917445 (diff)
downloadbcm5719-llvm-03f16a09bfce5eee342f22816ccae807fabfcf51.tar.gz
bcm5719-llvm-03f16a09bfce5eee342f22816ccae807fabfcf51.zip
Runtime errors in Python scripts were not being shown; this fix makes them print out to ease correcting errors
llvm-svn: 135395
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/lldb.swig4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/scripts/lldb.swig b/lldb/scripts/lldb.swig
index 4da001476b2..6991ba13399 100644
--- a/lldb/scripts/lldb.swig
+++ b/lldb/scripts/lldb.swig
@@ -463,22 +463,26 @@ LLDBSwigPythonCallTypeScript
}
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;
OpenPOWER on IntegriCloud