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:
Andrew MacPherson 2014-03-25 19:59:36 +00:00
parent 9287289d66
commit c3826b5ba6
4 changed files with 3 additions and 10 deletions

View File

@ -133,8 +133,6 @@ ProcessFreeBSD::DoDetach(bool keep_stopped)
return error;
}
DisableAllBreakpointSites();
error = m_monitor->Detach(GetID());
if (error.Success())

View File

@ -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())
{

View File

@ -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)
{

View File

@ -3692,6 +3692,9 @@ Process::Detach (bool keep_stopped)
}
}
m_thread_list.DiscardThreadPlans();
DisableAllBreakpointSites();
error = DoDetach(keep_stopped);
if (error.Success())
{