Don't re-insert disabled breakpoint locations.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@116908 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Breakpoint/Breakpoint.cpp b/source/Breakpoint/Breakpoint.cpp
index fd2296d..7f8b7df 100644
--- a/source/Breakpoint/Breakpoint.cpp
+++ b/source/Breakpoint/Breakpoint.cpp
@@ -290,6 +290,8 @@
for (size_t j = 0; j < m_locations.GetSize(); j++)
{
BreakpointLocationSP break_loc = m_locations.GetByIndex(j);
+ if (!break_loc->IsEnabled())
+ continue;
const Section *section = break_loc->GetAddress().GetSection();
if (section == NULL || section->GetModule() == module)
{