diff options
author | Adrian McCarthy <amccarth@google.com> | 2015-06-01 21:51:50 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2015-06-01 21:51:50 +0000 |
commit | 3ae7492b2dd7c2f1987bc257878e7eedcaec352a (patch) | |
tree | d14d6c74d1327b975494b8c21487fd60726fb953 /lldb/source/Plugins/Process | |
parent | 1db1ef9ab44519b0e323ececa1f22c20c78984a1 (diff) | |
download | bcm5719-llvm-3ae7492b2dd7c2f1987bc257878e7eedcaec352a.tar.gz bcm5719-llvm-3ae7492b2dd7c2f1987bc257878e7eedcaec352a.zip |
Fix TestJoinAfterBreak test on Windows
llvm-svn: 238787
Diffstat (limited to 'lldb/source/Plugins/Process')
-rw-r--r-- | lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp b/lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp index e358062534a..f94a10442e3 100644 --- a/lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/TargetThreadWindows.cpp @@ -7,6 +7,9 @@ // //===----------------------------------------------------------------------===// +#include "lldb/Core/Log.h" +#include "lldb/Core/Logging.h" +#include "lldb/Core/State.h" #include "lldb/Host/HostInfo.h" #include "lldb/Host/HostNativeThreadBase.h" #include "lldb/Host/windows/HostThreadWindows.h" @@ -15,6 +18,7 @@ #include "TargetThreadWindows.h" #include "ProcessWindows.h" +#include "ProcessWindowsLog.h" #include "UnwindLLDB.h" #if defined(_WIN64) @@ -41,14 +45,17 @@ void TargetThreadWindows::RefreshStateAfterStop() { ::SuspendThread(m_host_thread.GetNativeThread().GetSystemHandle()); - + SetState(eStateStopped); GetRegisterContext()->InvalidateIfNeeded(false); } void TargetThreadWindows::WillResume(lldb::StateType resume_state) { - SetResumeState(resume_state); + Log *log(lldb_private::GetLogIfAllCategoriesSet (WINDOWS_LOG_THREAD)); + if (log) + log->Printf ("TargetThreadWindows::WillResume (tid = %" PRIi64 ") setting thread resume state to %s", + GetID(), StateAsCString(resume_state)); } void |