[Lldb-commits] [lldb] r244801 - Fix process_events.py to auto continue the process if we attached so the process doesn't just sit there suspended.

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 12 13:04:01 PDT 2015


Author: gclayton
Date: Wed Aug 12 15:04:01 2015
New Revision: 244801

URL: http://llvm.org/viewvc/llvm-project?rev=244801&view=rev
Log:
Fix process_events.py to auto continue the process if we attached so the process doesn't just sit there suspended.


Modified:
    lldb/trunk/examples/python/process_events.py

Modified: lldb/trunk/examples/python/process_events.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/process_events.py?rev=244801&r1=244800&r2=244801&view=diff
==============================================================================
--- lldb/trunk/examples/python/process_events.py (original)
+++ lldb/trunk/examples/python/process_events.py Wed Aug 12 15:04:01 2015
@@ -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




More information about the lldb-commits mailing list