Use the API's to get the TargetSP.

llvm-svn: 335690
This commit is contained in:
Jim Ingham 2018-06-26 23:54:50 +00:00
parent b87b9e6a83
commit d7e126c491
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ void ProcessWindows::OnExitProcess(uint32_t exit_code) {
Log *log = ProcessWindowsLog::GetLogIfAny(WINDOWS_LOG_PROCESS);
LLDB_LOG(log, "Process {0} exited with code {1}", GetID(), exit_code);
TargetSP target = m_target_sp.lock();
TargetSP target = CalculateTarget();
if (target) {
ModuleSP executable_module = target->GetExecutableModule();
ModuleList unloaded_modules;