summaryrefslogtreecommitdiff
path: root/debuginfo-tests/llgdb.py
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
commit9916e21d826fc5511df44a05279efcc739aec9f8 (patch)
tree53e46922016bc7fbfae0e26a04fa10fbf53c5839 /debuginfo-tests/llgdb.py
parent9532f9257a05a61a8aeff5d4fdd54e8472d0a4e2 (diff)
Properly shutdown lldb by invoking SBDebugger_Terminate()
rdar://problem/18577039
Diffstat (limited to 'debuginfo-tests/llgdb.py')
-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)