diff options
-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) |