diff options
author | Jim Ingham <jingham@apple.com> | 2013-02-27 19:13:05 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2013-02-27 19:13:05 +0000 |
commit | 1fd07059045fec72187846f5faf5d504e06b28c8 (patch) | |
tree | f2e22267af876b8ff94cdc81c1ad4d726fbf7bec | |
parent | 2c377feacb207f83eedb3559d82ea4541e7cf541 (diff) | |
download | bcm5719-llvm-1fd07059045fec72187846f5faf5d504e06b28c8.tar.gz bcm5719-llvm-1fd07059045fec72187846f5faf5d504e06b28c8.zip |
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.
<rdar://problem/13297536>
llvm-svn: 176203
-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(); } } |