summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-12-04 22:07:02 +0000
committerZachary Turner <zturner@google.com>2014-12-04 22:07:02 +0000
commitbe5e1e5c9bf06b07abc4f64f8842cfd49a1aaaa0 (patch)
tree699338883ea87bfe1473a21575d428722ef691ea /lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
parent9b69327b43c165b81fcd7012b6174c3bbd30bfc1 (diff)
downloadbcm5719-llvm-be5e1e5c9bf06b07abc4f64f8842cfd49a1aaaa0.tar.gz
bcm5719-llvm-be5e1e5c9bf06b07abc4f64f8842cfd49a1aaaa0.zip
Fix a minor error where I forgot to declare a variable.
llvm-svn: 223393
Diffstat (limited to 'lldb/source/Plugins/Process/Windows/DebuggerThread.cpp')
-rw-r--r--lldb/source/Plugins/Process/Windows/DebuggerThread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp b/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
index d037273fc49..7021f785221 100644
--- a/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
+++ b/lldb/source/Plugins/Process/Windows/DebuggerThread.cpp
@@ -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)
OpenPOWER on IntegriCloud