summaryrefslogtreecommitdiff
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-10-13 16:34:31 +0000
committerAdrian Prantl <aprantl@apple.com>2014-10-13 16:34:31 +0000
commite7f9c16b5c427dca89364874ccd6e6196165b142 (patch)
treea46245b023d2c2fc767fe7f3529acb87c2faa371 /debuginfo-tests
parente0509d829ae1048d43025f80bd2464b34359a75e (diff)
Address review comments from Justin Bogner.
- raise without arguments is preserving the backtrace - move the call to terminate lldb to the exit handler
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/llgdb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/debuginfo-tests/llgdb.py b/debuginfo-tests/llgdb.py
index 9826b747af7..1a7f5d523e3 100644
--- a/debuginfo-tests/llgdb.py
+++ b/debuginfo-tests/llgdb.py
@@ -142,14 +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:
+ lldb.SBDebugger_Terminate()
+ raise
except:
print 'Could not handle the command "%s"' % ' '.join(cmd)