Don't call DisableBreakpointSite (i.e. don't try to remove the breakpoint from the target process) if the target

process is no longer alive.

<rdar://problem/13320991>

llvm-svn: 178936
This commit is contained in:
Jim Ingham
2013-04-06 00:16:39 +00:00
parent 4d1e30471d
commit f1ff3bb680

View File

@@ -2048,7 +2048,9 @@ Process::RemoveOwnerFromBreakpointSite (lldb::user_id_t owner_id, lldb::user_id_
uint32_t num_owners = bp_site_sp->RemoveOwner (owner_id, owner_loc_id);
if (num_owners == 0)
{
DisableBreakpointSite (bp_site_sp.get());
// Don't try to disable the site if we don't have a live process anymore.
if (IsAlive())
DisableBreakpointSite (bp_site_sp.get());
m_breakpoint_site_list.RemoveByAddress(bp_site_sp->GetLoadAddress());
}
}