diff options
author | Zachary Turner <zturner@google.com> | 2015-05-20 18:31:17 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-05-20 18:31:17 +0000 |
commit | c62733b0debd510b7926baf2090bd9e2ff9f3dad (patch) | |
tree | d881f88f780cdc8448bc137e99b9f3056aa41e0a /lldb/source/Target/Process.cpp | |
parent | fd28abcf15b433a4e36cee68a2f4bf7db6ce52a9 (diff) | |
download | bcm5719-llvm-c62733b0debd510b7926baf2090bd9e2ff9f3dad.tar.gz bcm5719-llvm-c62733b0debd510b7926baf2090bd9e2ff9f3dad.zip |
Implement attach to process on Windows.
Differential Revision: http://reviews.llvm.org/D9801
Reviewed by: Adrian McCarthy
llvm-svn: 237817
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index d43ce743da9..a78979cc701 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -3336,6 +3336,9 @@ Process::AttachCompletionHandler::PerformAction (lldb::EventSP &event_sp) switch (state) { + case eStateAttaching: + return eEventActionSuccess; + case eStateRunning: case eStateConnected: return eEventActionRetry; @@ -4457,7 +4460,8 @@ Process::HandlePrivateEvent (EventSP &event_sp) // Only push the input handler if we aren't fowarding events, // as this means the curses GUI is in use... // Or don't push it if we are launching since it will come up stopped. - if (!GetTarget().GetDebugger().IsForwardingEvents() && new_state != eStateLaunching) + if (!GetTarget().GetDebugger().IsForwardingEvents() && new_state != eStateLaunching && + new_state != eStateAttaching) PushProcessIOHandler (); m_iohandler_sync.SetValue(true, eBroadcastAlways); } |