Don't re-insert disabled breakpoint locations.
llvm-svn: 116908
This commit is contained in:
parent
d507d77432
commit
d4ce0a1597
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue