diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-10-13 16:34:31 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-10-13 16:34:31 +0000 |
commit | 971ad5925cb35e3dabc5b5465cb4adc8a9e220a6 (patch) | |
tree | 1f9b0a33724a44bff4a7ba9d8d53e302bc1bcdcb /debuginfo-tests | |
parent | 9d7bd78ffad973fb1061365249f1ccde98b8569c (diff) | |
download | bcm5719-llvm-971ad5925cb35e3dabc5b5465cb4adc8a9e220a6.tar.gz bcm5719-llvm-971ad5925cb35e3dabc5b5465cb4adc8a9e220a6.zip |
Address review comments from Justin Bogner.
- raise without arguments is preserving the backtrace
- move the call to terminate lldb to the exit handler
llvm-svn: 219618
Diffstat (limited to 'debuginfo-tests')
-rw-r--r-- | debuginfo-tests/llgdb.py | 6 |
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) |