Properly shutdown lldb by invoking SBDebugger_Terminate()

rdar://problem/18577039

llvm-svn: 219451
This commit is contained in:
Adrian Prantl 2014-10-09 22:16:46 +00:00
parent b63c251894
commit 32cac2e062
1 changed files with 3 additions and 1 deletions

View File

@ -142,12 +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, e:
raise e
except:
print 'Could not handle the command "%s"' % ' '.join(cmd)