summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-10-20 03:36:33 +0000
committerJim Ingham <jingham@apple.com>2010-10-20 03:36:33 +0000
commitd4ce0a1597d63ca14df8c0e3a86114614c20c993 (patch)
treeddb9a259f81273ac3eb510216f8a63bb7bb2e579
parentd507d77432b7c9340f4f0c760f76c1ebaaef37aa (diff)
downloadbcm5719-llvm-d4ce0a1597d63ca14df8c0e3a86114614c20c993.tar.gz
bcm5719-llvm-d4ce0a1597d63ca14df8c0e3a86114614c20c993.zip
Don't re-insert disabled breakpoint locations.
llvm-svn: 116908
-rw-r--r--lldb/source/Breakpoint/Breakpoint.cpp2
-rw-r--r--lldb/source/Breakpoint/BreakpointLocationList.cpp5
2 files changed, 6 insertions, 1 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)
{
diff --git a/lldb/source/Breakpoint/BreakpointLocationList.cpp b/lldb/source/Breakpoint/BreakpointLocationList.cpp
index a7d5cea30a0..09f94eaee4a 100644
--- a/lldb/source/Breakpoint/BreakpointLocationList.cpp
+++ b/lldb/source/Breakpoint/BreakpointLocationList.cpp
@@ -260,7 +260,10 @@ BreakpointLocationList::ResolveAllBreakpointSites ()
collection::iterator pos, end = m_locations.end();
for (pos = m_locations.begin(); pos != end; ++pos)
- (*pos)->ResolveBreakpointSite();
+ {
+ if ((*pos)->IsEnabled())
+ (*pos)->ResolveBreakpointSite();
+ }
}
uint32_t
OpenPOWER on IntegriCloud