mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:18:14 +08:00
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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user