void ExecutionContext::SetContext (const lldb::TargetSP &target_sp, bool get_process) { m_target_sp = target_sp; if (get_process && target_sp) m_process_sp = target_sp->GetProcessSP(); else m_process_sp.reset(); m_thread_sp.reset(); m_frame_sp.reset(); }
IRMemoryMap::IRMemoryMap (lldb::TargetSP target_sp) : m_target_wp(target_sp) { if (target_sp) m_process_wp = target_sp->GetProcessSP(); }