Ignore the static analyzer, instead; and add comment why.
llvm-svn: 137275
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp b/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
index 730aefd..9f57788 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.cpp
@@ -418,8 +418,8 @@
{
DisableAllBreakpoints (true);
DisableAllWatchpoints (true);
- // Silence static analyzer.
- // clear_bps_and_wps = false;
+ // The static analyzer complains about this, but just leave the following line in.
+ clear_bps_and_wps = false;
}
uint32_t thread_idx = m_thread_list.GetThreadIndexForThreadStoppedWithSignal (SIGSTOP);
if (thread_idx_ptr)