Author: enrico
Date: Tue Feb 18 14:00:20 2014
New Revision: 201600
URL: http://llvm.org/viewvc/llvm-project?rev=201600&view=rev
Log:
Make sure we don't try to print the SystemExit exception, or we will cause the
containing process to exit() from under us
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=201600&r1=201599&r2=201600&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/python-wrapper.swig (original)
+++ lldb/trunk/scripts/Python/python-wrapper.swig Tue Feb 18 14:00:20 2014
@@ -16,7 +16,7 @@ public:
{
if (PyErr_Occurred())
{
- if(m_print)
+ if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit))
PyErr_Print();
PyErr_Clear();
}
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits