Lines Matching defs:target_sp

50                                 TargetSP &target_sp) {
54 platform_options, target_sp);
56 if (target_sp && result.Success())
57 AddTargetInternal(target_sp, /*do_select*/ true);
65 PlatformSP &platform_sp, TargetSP &target_sp) {
69 platform_sp, target_sp);
71 if (target_sp && result.Success())
72 AddTargetInternal(target_sp, /*do_select*/ true);
79 const OptionGroupPlatform *platform_options, TargetSP &target_sp) {
243 platform_sp, target_sp);
251 lldb::TargetSP &target_sp) {
327 target_sp.reset(new Target(debugger, arch, platform_sp, is_dummy_target));
328 debugger.GetTargetList().RegisterInProcessTarget(target_sp);
329 target_sp->SetExecutableModule(exe_module_sp, load_dependent_files);
333 if (target_sp->GetPreloadSymbols())
339 target_sp.reset(new Target(debugger, arch, platform_sp, is_dummy_target));
340 debugger.GetTargetList().RegisterInProcessTarget(target_sp);
343 if (!target_sp)
353 target_sp->SetArg0(resolved_bundle_exe_path);
356 target_sp->SetArg0(file.GetPath().c_str());
362 target_sp->AppendExecutableSearchPaths(file_dir);
366 target_sp->PrimeFromDummyTarget(debugger.GetDummyTarget());
371 bool TargetList::DeleteTarget(TargetSP &target_sp) {
373 auto it = llvm::find(m_target_list, target_sp);
416 TargetSP target_sp;
418 return target_sp;
427 target_sp = *it;
429 return target_sp;
433 TargetSP target_sp;
435 return target_sp;
441 target_sp = *it;
443 return target_sp;
450 TargetSP target_sp(FindTargetWithProcessID(pid));
451 if (target_sp) {
452 Process *process = target_sp->GetProcessSP().get();
473 for (const auto &target_sp : m_target_list) {
474 process = target_sp->GetProcessSP().get();
482 TargetSP target_sp(FindTargetWithProcessID(pid));
483 if (target_sp) {
484 process = target_sp->GetProcessSP().get();
500 TargetSP target_sp;
503 target_sp = m_target_list[idx];
504 return target_sp;
507 uint32_t TargetList::GetIndexOfTarget(lldb::TargetSP target_sp) const {
509 auto it = llvm::find(m_target_list, target_sp);
515 void TargetList::AddTargetInternal(TargetSP target_sp, bool do_select) {
516 lldbassert(!llvm::is_contained(m_target_list, target_sp) &&
518 UnregisterInProcessTarget(target_sp);
519 m_target_list.push_back(std::move(target_sp));
534 void TargetList::SetSelectedTarget(const TargetSP &target_sp) {
537 if (target_sp && target_sp->IsValid()) {
539 auto it = llvm::find(m_target_list, target_sp);
553 for (const auto &target_sp : m_target_list) {
554 if (target_sp->GetImages().FindModule(&module))
557 for (const auto &target_sp: m_in_process_target_list) {
558 if (target_sp->GetImages().FindModule(&module))
564 void TargetList::RegisterInProcessTarget(TargetSP target_sp) {
568 m_in_process_target_list.insert(target_sp);
572 void TargetList::UnregisterInProcessTarget(TargetSP target_sp) {
575 m_in_process_target_list.erase(target_sp);
579 bool TargetList::IsTargetInProcess(TargetSP target_sp) {
581 return m_in_process_target_list.count(target_sp) == 1;