Fix process_events.py to auto continue the process if we attached so the process doesn't just sit there suspended.

llvm-svn: 244801
This commit is contained in:
Greg Clayton 2015-08-12 20:04:01 +00:00
parent 1230a54970
commit 4d48e5b371
1 changed files with 6 additions and 0 deletions

View File

@ -171,7 +171,13 @@ def main(argv):
# Make sure the launch went ok
if process and process.GetProcessID() != lldb.LLDB_INVALID_PROCESS_ID:
pid = process.GetProcessID()
print 'Process is %i' % (pid)
if attach_info:
# continue process if we attached as we won't get an initial event
process.Continue()
listener = debugger.GetListener()
# sign up for process state change events
stop_idx = 0