summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-10-09 22:16:46 +0000
committerAdrian Prantl <aprantl@apple.com>2014-10-09 22:16:46 +0000
commit32cac2e06261ef221683f67e98dffb8ad60e09de (patch)
treec43e81035de2e8c744f333ff610b54d92bef2933 /debuginfo-tests
parentb63c251894521a4237a5e8e8a1babaa87191b3ba (diff)
downloadbcm5719-llvm-32cac2e06261ef221683f67e98dffb8ad60e09de.tar.gz
bcm5719-llvm-32cac2e06261ef221683f67e98dffb8ad60e09de.zip
Properly shutdown lldb by invoking SBDebugger_Terminate()
rdar://problem/18577039 llvm-svn: 219451
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/llgdb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/debuginfo-tests/llgdb.py b/debuginfo-tests/llgdb.py
index 3bd25bf52ca..9826b747af7 100644
--- a/debuginfo-tests/llgdb.py
+++ b/debuginfo-tests/llgdb.py
@@ -142,12 +142,14 @@ NOTE: There are several resons why this may happen:
print frame.EvaluateExpression(' '.join(cmd[1:]))
elif re.match('^q|(quit)$', cmd[0]):
+ lldb.SBDebugger_Terminate()
sys.exit(0)
else:
print debugger.HandleCommand(' '.join(cmd))
- except SystemExit, e: raise e
+ except SystemExit, e:
+ raise e
except:
print 'Could not handle the command "%s"' % ' '.join(cmd)
OpenPOWER on IntegriCloud