Fix a minor error where I forgot to declare a variable.

llvm-svn: 223393
This commit is contained in:
Zachary Turner
2014-12-04 22:07:02 +00:00
parent 9b69327b43
commit be5e1e5c9b

View File

@@ -164,7 +164,8 @@ void
DebuggerThread::DebugLoop()
{
DEBUG_EVENT dbe = {0};
while (WaitForDebugEvent(&dbe, INFINITE))
bool should_debug = true;
while (should_debug && WaitForDebugEvent(&dbe, INFINITE))
{
DWORD continue_status = DBG_CONTINUE;
switch (dbe.dwDebugEventCode)