[lldb] Always call DestroyImpl from Process::Finalize
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 14 Jul 2021 20:21:36 +0000 (13:21 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 14 Jul 2021 20:35:53 +0000 (13:35 -0700)
commit1e4a417ee639b867b783e52949d22c1965ab25d0
tree396a3af7424b963a1ccef9cd2231f113ab6c6133
parente23dce6c974477d3476bee5256a83a9aaea8eae4
[lldb] Always call DestroyImpl from Process::Finalize

Always destroy the process, regardless of its private state. This will
call the virtual function DoDestroy under the hood, giving our derived
class a chance to do the necessary tear down, including what to do when
the private state is eStateExited.

Differential revision: https://reviews.llvm.org/D106004
lldb/source/Target/Process.cpp