summaryrefslogtreecommitdiffstats
path: root/lldb/examples
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-08-12 20:04:01 +0000
committerGreg Clayton <gclayton@apple.com>2015-08-12 20:04:01 +0000
commit4d48e5b371eb54193ec0bbb422a190c0f0ae8c77 (patch)
tree84653df216fdb7f0b4a40d352c0b3cc974c38dbc /lldb/examples
parent1230a549703acb0f71826586ccf0d8b2bc366d30 (diff)
downloadbcm5719-llvm-4d48e5b371eb54193ec0bbb422a190c0f0ae8c77.tar.gz
bcm5719-llvm-4d48e5b371eb54193ec0bbb422a190c0f0ae8c77.zip
Fix process_events.py to auto continue the process if we attached so the process doesn't just sit there suspended.
llvm-svn: 244801
Diffstat (limited to 'lldb/examples')
-rwxr-xr-xlldb/examples/python/process_events.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/examples/python/process_events.py b/lldb/examples/python/process_events.py
index 98c2d3f806a..e8ccc5f9023 100755
--- 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
OpenPOWER on IntegriCloud