From 1fd07059045fec72187846f5faf5d504e06b28c8 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Wed, 27 Feb 2013 19:13:05 +0000 Subject: Call Process::Finalize directly in Debugger::Destroy, rather than having it done in the Process destructor. Doing it there can be too late depending on what the internal state and ProcessGDBRemote Async threads are doing. llvm-svn: 176203 --- lldb/source/Core/Debugger.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lldb/source/Core/Debugger.cpp') diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index dd8c613f2fb..327965c1afd 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -607,10 +607,7 @@ Debugger::Clear() { ProcessSP process_sp (target_sp->GetProcessSP()); if (process_sp) - { - if (process_sp->GetShouldDetach()) - process_sp->Detach(); - } + process_sp->Finalize(); target_sp->Destroy(); } } -- cgit v1.2.3