summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint/Breakpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Breakpoint/Breakpoint.cpp')
-rw-r--r--lldb/source/Breakpoint/Breakpoint.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Breakpoint/Breakpoint.cpp b/lldb/source/Breakpoint/Breakpoint.cpp
index fd2296df681..7f8b7dfff3c 100644
--- a/lldb/source/Breakpoint/Breakpoint.cpp
+++ b/lldb/source/Breakpoint/Breakpoint.cpp
@@ -290,6 +290,8 @@ Breakpoint::ModulesChanged (ModuleList &module_list, bool load)
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)
{
OpenPOWER on IntegriCloud