forked from OSchip/llvm-project
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:
parent
9d7bd78ffa
commit
971ad5925c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue