Lines Matching refs:target_sp

50                                 TargetSP &target_sp) {  in CreateTarget()  argument
54 platform_options, target_sp); in CreateTarget()
56 if (target_sp && result.Success()) in CreateTarget()
57 AddTargetInternal(target_sp, /*do_select*/ true); in CreateTarget()
65 PlatformSP &platform_sp, TargetSP &target_sp) { in CreateTarget() argument
69 platform_sp, target_sp); in CreateTarget()
71 if (target_sp && result.Success()) in CreateTarget()
72 AddTargetInternal(target_sp, /*do_select*/ true); in CreateTarget()
79 const OptionGroupPlatform *platform_options, TargetSP &target_sp) { in CreateTargetInternal() argument
241 platform_sp, target_sp); in CreateTargetInternal()
249 lldb::TargetSP &target_sp) { in CreateTargetInternal() argument
325 target_sp.reset(new Target(debugger, arch, platform_sp, is_dummy_target)); in CreateTargetInternal()
326 target_sp->SetExecutableModule(exe_module_sp, load_dependent_files); in CreateTargetInternal()
330 if (target_sp->GetPreloadSymbols()) in CreateTargetInternal()
336 target_sp.reset(new Target(debugger, arch, platform_sp, is_dummy_target)); in CreateTargetInternal()
339 if (!target_sp) in CreateTargetInternal()
349 target_sp->SetArg0(resolved_bundle_exe_path); in CreateTargetInternal()
352 target_sp->SetArg0(file.GetPath().c_str()); in CreateTargetInternal()
358 target_sp->AppendExecutableSearchPaths(file_dir); in CreateTargetInternal()
362 target_sp->PrimeFromDummyTarget(debugger.GetDummyTarget()); in CreateTargetInternal()
367 bool TargetList::DeleteTarget(TargetSP &target_sp) { in DeleteTarget() argument
369 auto it = std::find(m_target_list.begin(), m_target_list.end(), target_sp); in DeleteTarget()
412 TargetSP target_sp; in FindTargetWithProcess() local
414 return target_sp; in FindTargetWithProcess()
423 target_sp = *it; in FindTargetWithProcess()
425 return target_sp; in FindTargetWithProcess()
429 TargetSP target_sp; in GetTargetSP() local
431 return target_sp; in GetTargetSP()
437 target_sp = *it; in GetTargetSP()
439 return target_sp; in GetTargetSP()
446 TargetSP target_sp(FindTargetWithProcessID(pid)); in SendAsyncInterrupt() local
447 if (target_sp) { in SendAsyncInterrupt()
448 Process *process = target_sp->GetProcessSP().get(); in SendAsyncInterrupt()
469 for (const auto &target_sp : m_target_list) { in SignalIfRunning() local
470 process = target_sp->GetProcessSP().get(); in SignalIfRunning()
478 TargetSP target_sp(FindTargetWithProcessID(pid)); in SignalIfRunning() local
479 if (target_sp) { in SignalIfRunning()
480 process = target_sp->GetProcessSP().get(); in SignalIfRunning()
496 TargetSP target_sp; in GetTargetAtIndex() local
499 target_sp = m_target_list[idx]; in GetTargetAtIndex()
500 return target_sp; in GetTargetAtIndex()
503 uint32_t TargetList::GetIndexOfTarget(lldb::TargetSP target_sp) const { in GetIndexOfTarget()
505 auto it = std::find(m_target_list.begin(), m_target_list.end(), target_sp); in GetIndexOfTarget()
511 void TargetList::AddTargetInternal(TargetSP target_sp, bool do_select) { in AddTargetInternal() argument
512 lldbassert(!llvm::is_contained(m_target_list, target_sp) && in AddTargetInternal()
514 m_target_list.push_back(std::move(target_sp)); in AddTargetInternal()
529 void TargetList::SetSelectedTarget(const TargetSP &target_sp) { in SetSelectedTarget() argument
531 auto it = std::find(m_target_list.begin(), m_target_list.end(), target_sp); in SetSelectedTarget()