From 971ad5925cb35e3dabc5b5465cb4adc8a9e220a6 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 13 Oct 2014 16:34:31 +0000 Subject: [PATCH] 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 --- debuginfo-tests/llgdb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debuginfo-tests/llgdb.py b/debuginfo-tests/llgdb.py index 9826b747af74..1a7f5d523e35 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)