projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1230a54
)
Fix process_events.py to auto continue the process if we attached so the process...
author
Greg Clayton
<gclayton@apple.com>
Wed, 12 Aug 2015 20:04:01 +0000
(20:04 +0000)
committer
Greg Clayton
<gclayton@apple.com>
Wed, 12 Aug 2015 20:04:01 +0000
(20:04 +0000)
llvm-svn: 244801
lldb/examples/python/process_events.py
patch
|
blob
|
history
diff --git
a/lldb/examples/python/process_events.py
b/lldb/examples/python/process_events.py
index
98c2d3f
..
e8ccc5f
100755
(executable)
--- a/
lldb/examples/python/process_events.py
+++ b/
lldb/examples/python/process_events.py
@@
-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