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
This commit is contained in:
Adrian Prantl 2014-10-13 16:34:31 +00:00
parent 9d7bd78ffa
commit 971ad5925c
1 changed files with 3 additions and 3 deletions

View File

@ -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)