[Lldb-commits] [lldb] r178936 - Don't call DisableBreakpointSite (i.e. don't try to remove the breakpoint from the target process) if the target
Jim Ingham
jingham at apple.com
Fri Apr 5 17:16:39 PDT 2013
Author: jingham
Date: Fri Apr 5 19:16:39 2013
New Revision: 178936
URL: http://llvm.org/viewvc/llvm-project?rev=178936&view=rev
Log:
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>
Modified:
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=178936&r1=178935&r2=178936&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Fri Apr 5 19:16:39 2013
@@ -2048,7 +2048,9 @@ Process::RemoveOwnerFromBreakpointSite (
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());
}
}
More information about the lldb-commits
mailing list