[Lldb-commits] [PATCH] Solve hang on Windows when lldb fails to launch the process
Zachary Turner
zturner at google.com
Wed Feb 25 10:59:06 PST 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D7874
Files:
lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp
Index: lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp
===================================================================
--- lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp
+++ lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp
@@ -222,7 +222,11 @@
{
// Block this function until we receive the initial stop from the process.
if (::WaitForSingleObject(m_session_data->m_initial_stop_event, INFINITE) == WAIT_OBJECT_0)
+ {
process = debugger->GetProcess();
+ if (m_session_data->m_launch_error.Fail())
+ result = m_session_data->m_launch_error;
+ }
else
result.SetError(::GetLastError(), eErrorTypeWin32);
}
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7874.20690.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150225/3aee0ef3/attachment.bin>
More information about the lldb-commits
mailing list