Lines Matching defs:platform_sp
344 PlatformSP platform_sp(GetSP());
345 if (platform_sp)
346 return ConstString(platform_sp->GetName()).AsCString();
352 void SBPlatform::SetSP(const lldb::PlatformSP &platform_sp) {
353 m_opaque_sp = platform_sp;
359 PlatformSP platform_sp(GetSP());
360 if (platform_sp)
361 return platform_sp->GetWorkingDirectory().GetPathAsConstString().AsCString();
368 PlatformSP platform_sp(GetSP());
369 if (platform_sp) {
371 platform_sp->SetWorkingDirectory(FileSpec(path));
373 platform_sp->SetWorkingDirectory(FileSpec());
383 PlatformSP platform_sp(GetSP());
384 if (platform_sp && connect_options.GetURL()) {
387 sb_error.ref() = platform_sp->ConnectRemote(args);
397 PlatformSP platform_sp(GetSP());
398 if (platform_sp)
399 platform_sp->DisconnectRemote();
405 PlatformSP platform_sp(GetSP());
406 if (platform_sp)
407 return platform_sp->IsConnected();
414 PlatformSP platform_sp(GetSP());
415 if (platform_sp) {
416 ArchSpec arch(platform_sp->GetSystemArchitecture());
429 PlatformSP platform_sp(GetSP());
430 if (platform_sp) {
431 std::string s = platform_sp->GetOSBuildString().value_or("");
444 PlatformSP platform_sp(GetSP());
445 if (platform_sp) {
446 std::string s = platform_sp->GetOSKernelDescription().value_or("");
459 PlatformSP platform_sp(GetSP());
460 if (platform_sp)
461 return ConstString(platform_sp->GetHostname()).GetCString();
469 if (PlatformSP platform_sp = GetSP())
470 version = platform_sp->GetOSVersion();
478 if (PlatformSP platform_sp = GetSP())
479 version = platform_sp->GetOSVersion();
487 if (PlatformSP platform_sp = GetSP())
488 version = platform_sp->GetOSVersion();
494 if (PlatformSP platform_sp = GetSP())
495 platform_sp->SetSDKRootDirectory(llvm::StringRef(sysroot).str());
502 PlatformSP platform_sp(GetSP());
503 if (platform_sp) {
504 sb_error.ref() = platform_sp->GetFile(src.ref(), dst.ref());
513 return ExecuteConnected([&](const lldb::PlatformSP &platform_sp) {
523 return platform_sp->PutFile(src.ref(), dst.ref(), permissions);
533 return ExecuteConnected([&](const lldb::PlatformSP &platform_sp) {
535 return platform_sp->Install(src.ref(), dst.ref());
547 [&](const lldb::PlatformSP &platform_sp) {
554 platform_sp->GetWorkingDirectory().GetPath();
558 return platform_sp->RunShellCommand(
570 return ExecuteConnected([&](const lldb::PlatformSP &platform_sp) {
572 Status error = platform_sp->LaunchProcess(info);
583 if (PlatformSP platform_sp = GetSP()) {
584 if (platform_sp->IsConnected()) {
587 ProcessSP process_sp = platform_sp->Attach(info, debugger.ref(),
602 if (PlatformSP platform_sp = GetSP()) {
603 if (platform_sp->IsConnected()) {
604 ProcessInstanceInfoList list = platform_sp->GetAllProcesses();
617 return ExecuteConnected([&](const lldb::PlatformSP &platform_sp) {
618 return platform_sp->KillProcess(pid);
625 const auto platform_sp(GetSP());
626 if (platform_sp) {
627 if (platform_sp->IsConnected())
628 sb_error.ref() = func(platform_sp);
641 PlatformSP platform_sp(GetSP());
642 if (platform_sp) {
644 platform_sp->MakeDirectory(FileSpec(path), file_permissions);
654 PlatformSP platform_sp(GetSP());
655 if (platform_sp) {
657 platform_sp->GetFilePermissions(FileSpec(path), file_permissions);
668 PlatformSP platform_sp(GetSP());
669 if (platform_sp) {
671 platform_sp->SetFilePermissions(FileSpec(path), file_permissions);
681 if (auto platform_sp = GetSP())
682 return SBUnixSignals{platform_sp};
689 PlatformSP platform_sp(GetSP());
691 if (platform_sp) {
692 return SBEnvironment(platform_sp->GetEnvironment());
701 PlatformSP platform_sp(GetSP());
702 if (!platform_sp)
707 platform_sp->SetLocateModuleCallback(nullptr);
715 platform_sp->SetLocateModuleCallback(