diff options
Diffstat (limited to 'lldb/utils')
-rw-r--r-- | lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py b/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py index 04e11a5a93e..923e771e6af 100644 --- a/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py +++ b/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py @@ -153,11 +153,7 @@ class LLDBController(object): return self.ui.activate() - - # attach succeeded, store pid and add some event listeners self.pid = self.process.GetProcessID() - self.process.GetBroadcaster().AddListener(self.processListener, lldb.SBProcess.eBroadcastBitStateChanged) - self.doContinue() print "Attached to %s (pid=%d)" % (process_name, self.pid) @@ -352,6 +348,10 @@ class LLDBController(object): self.processListener.GetNextEvent(event) new_state = lldb.SBProcess.GetStateFromEvent(event) + # continue if stopped after attaching + if old_state == lldb.eStateAttaching and new_state == lldb.eStateStopped: + self.process.Continue() + # If needed, perform any event-specific behaviour here num_events_handled += 1 |