Don't re-insert disabled breakpoint locations.

llvm-svn: 116908
This commit is contained in:
Jim Ingham 2010-10-20 03:36:33 +00:00
parent d507d77432
commit d4ce0a1597
2 changed files with 6 additions and 1 deletions

View File

@ -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)
{

View File

@ -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