diff options
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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(); } } |