summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/python-wrapper.swig
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-02-18 20:00:20 +0000
committerEnrico Granata <egranata@apple.com>2014-02-18 20:00:20 +0000
commit9422fd0c14bff4d2e250e0ff3544b6aa081ce67a (patch)
tree168c7e21e9928782d683580dd5b4a5ecbf6de03b /lldb/scripts/Python/python-wrapper.swig
parentb549019c3c3a0cd417fcc9dc4ec17340de4c6046 (diff)
downloadbcm5719-llvm-9422fd0c14bff4d2e250e0ff3544b6aa081ce67a.tar.gz
bcm5719-llvm-9422fd0c14bff4d2e250e0ff3544b6aa081ce67a.zip
Make sure we don't try to print the SystemExit exception, or we will cause the containing process to exit() from under us
llvm-svn: 201600
Diffstat (limited to 'lldb/scripts/Python/python-wrapper.swig')
-rw-r--r--lldb/scripts/Python/python-wrapper.swig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/scripts/Python/python-wrapper.swig b/lldb/scripts/Python/python-wrapper.swig
index 75b082ffe0c..646323a21cd 100644
--- a/lldb/scripts/Python/python-wrapper.swig
+++ b/lldb/scripts/Python/python-wrapper.swig
@@ -16,7 +16,7 @@ public:
{
if (PyErr_Occurred())
{
- if(m_print)
+ if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit))
PyErr_Print();
PyErr_Clear();
}
OpenPOWER on IntegriCloud