forked from OSchip/llvm-project
Move calls to DisableAllBreakpointSites() and m_thread_list.DiscardThreadPlans() into base Process::Destroy() instead of in subclass DoDestroy() methods.
llvm-svn: 204752
This commit is contained in:
parent
9287289d66
commit
c3826b5ba6
|
@ -133,8 +133,6 @@ ProcessFreeBSD::DoDetach(bool keep_stopped)
|
|||
return error;
|
||||
}
|
||||
|
||||
DisableAllBreakpointSites();
|
||||
|
||||
error = m_monitor->Detach(GetID());
|
||||
|
||||
if (error.Success())
|
||||
|
|
|
@ -599,10 +599,6 @@ ProcessKDP::DoDetach(bool keep_stopped)
|
|||
}
|
||||
else
|
||||
{
|
||||
DisableAllBreakpointSites ();
|
||||
|
||||
m_thread_list.DiscardThreadPlans();
|
||||
|
||||
// If we are going to keep the target stopped, then don't send the disconnect message.
|
||||
if (!keep_stopped && m_comm.IsConnected())
|
||||
{
|
||||
|
|
|
@ -1866,10 +1866,6 @@ ProcessGDBRemote::DoDetach(bool keep_stopped)
|
|||
if (log)
|
||||
log->Printf ("ProcessGDBRemote::DoDetach(keep_stopped: %i)", keep_stopped);
|
||||
|
||||
DisableAllBreakpointSites ();
|
||||
|
||||
m_thread_list.DiscardThreadPlans();
|
||||
|
||||
error = m_gdb_comm.Detach (keep_stopped);
|
||||
if (log)
|
||||
{
|
||||
|
|
|
@ -3692,6 +3692,9 @@ Process::Detach (bool keep_stopped)
|
|||
}
|
||||
}
|
||||
|
||||
m_thread_list.DiscardThreadPlans();
|
||||
DisableAllBreakpointSites();
|
||||
|
||||
error = DoDetach(keep_stopped);
|
||||
if (error.Success())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue