Home
last modified time | relevance | path

Searched refs:platform_sp (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm-project/lldb/source/Interpreter/
DOptionGroupPlatform.cpp21 PlatformSP platform_sp; in CreatePlatformWithOptions() local
24 platform_sp = Platform::Create(ConstString(m_platform_name.c_str()), error); in CreatePlatformWithOptions()
25 if (platform_sp) { in CreatePlatformWithOptions()
27 !platform_sp->IsCompatibleArchitecture(arch, false, &platform_arch)) { in CreatePlatformWithOptions()
29 platform_sp->GetName().GetCString(), in CreatePlatformWithOptions()
31 platform_sp.reset(); in CreatePlatformWithOptions()
32 return platform_sp; in CreatePlatformWithOptions()
36 platform_sp = Platform::Create(arch, &platform_arch, error); in CreatePlatformWithOptions()
39 if (platform_sp) { in CreatePlatformWithOptions()
40 interpreter.GetDebugger().GetPlatformList().Append(platform_sp, in CreatePlatformWithOptions()
[all …]
DOptions.cpp1289 lldb::PlatformSP platform_sp, in Parse() argument
1343 if (!platform_sp) { in Parse()
1348 platform_sp = target_sp ? target_sp->GetPlatform() : PlatformSP(); in Parse()
1352 if (!platform_sp && require_validation) { in Parse()
1361 if (platform_sp) { in Parse()
1366 if (validator && !validator->IsValid(*platform_sp, *exe_ctx_p)) { in Parse()
/external/llvm-project/lldb/source/API/
DSBPlatform.cpp372 PlatformSP platform_sp(GetSP()); in GetName() local
373 if (platform_sp) in GetName()
374 return platform_sp->GetName().GetCString(); in GetName()
380 void SBPlatform::SetSP(const lldb::PlatformSP &platform_sp) { in SetSP() argument
381 m_opaque_sp = platform_sp; in SetSP()
387 PlatformSP platform_sp(GetSP()); in GetWorkingDirectory() local
388 if (platform_sp) in GetWorkingDirectory()
389 return platform_sp->GetWorkingDirectory().GetCString(); in GetWorkingDirectory()
397 PlatformSP platform_sp(GetSP()); in SetWorkingDirectory() local
398 if (platform_sp) { in SetWorkingDirectory()
[all …]
DSBUnixSignals.cpp32 SBUnixSignals::SBUnixSignals(PlatformSP &platform_sp) in SBUnixSignals() argument
33 : m_opaque_wp(platform_sp ? platform_sp->GetUnixSignals() : nullptr) {} in SBUnixSignals()
DSBProcess.cpp1022 PlatformSP platform_sp = process_sp->GetTarget().GetPlatform(); in GetExtendedCrashInformation() local
1024 if (!platform_sp) in GetExtendedCrashInformation()
1028 platform_sp->FetchExtendedCrashInformation(*process_sp.get()); in GetExtendedCrashInformation()
1079 PlatformSP platform_sp = process_sp->GetTarget().GetPlatform(); in LoadImage() local
1080 return platform_sp->LoadImage(process_sp.get(), *sb_local_image_spec, in LoadImage()
1106 PlatformSP platform_sp = process_sp->GetTarget().GetPlatform(); in LoadImageUsingPaths() local
1114 uint32_t token = platform_sp->LoadImageUsingPaths( in LoadImageUsingPaths()
1140 PlatformSP platform_sp = process_sp->GetTarget().GetPlatform(); in UnloadImage() local
1142 platform_sp->UnloadImage(process_sp.get(), image_token)); in UnloadImage()
DSBDebugger.cpp1439 PlatformSP platform_sp(Platform::Find(platform_name)); in SetCurrentPlatform() local
1441 if (platform_sp) { in SetCurrentPlatform()
1443 m_opaque_sp->GetPlatformList().SetSelectedPlatform(platform_sp); in SetCurrentPlatform()
1446 platform_sp = Platform::Create(platform_name, sb_error.ref()); in SetCurrentPlatform()
1447 if (platform_sp) { in SetCurrentPlatform()
1450 m_opaque_sp->GetPlatformList().Append(platform_sp, make_selected); in SetCurrentPlatform()
1468 PlatformSP platform_sp( in SetCurrentPlatformSDKRoot() local
1471 if (platform_sp) { in SetCurrentPlatformSDKRoot()
1475 platform_sp->SetSDKRootDirectory(ConstString(sysroot)); in SetCurrentPlatformSDKRoot()
/external/llvm-project/lldb/source/Commands/
DCommandObjectPlatform.cpp173 PlatformSP platform_sp(m_platform_options.CreatePlatformWithOptions( in DoExecute() local
175 if (platform_sp) { in DoExecute()
176 GetDebugger().GetPlatformList().SetSelectedPlatform(platform_sp); in DoExecute()
178 platform_sp->GetStatus(result.GetOutputStream()); in DoExecute()
256 PlatformSP platform_sp; in DoExecute() local
258 platform_sp = target->GetPlatform(); in DoExecute()
260 if (!platform_sp) { in DoExecute()
261 platform_sp = GetDebugger().GetPlatformList().GetSelectedPlatform(); in DoExecute()
263 if (platform_sp) { in DoExecute()
264 platform_sp->GetStatus(ostrm); in DoExecute()
[all …]
DCommandCompletions.cpp497 lldb::PlatformSP platform_sp = in RemoteDiskFiles() local
499 if (platform_sp) in RemoteDiskFiles()
500 platform_sp->AutoCompleteDiskFileOrDirectory(request, false); in RemoteDiskFiles()
506 lldb::PlatformSP platform_sp = in RemoteDiskDirectories() local
508 if (platform_sp) in RemoteDiskDirectories()
509 platform_sp->AutoCompleteDiskFileOrDirectory(request, true); in RemoteDiskDirectories()
680 lldb::PlatformSP platform_sp(interpreter.GetPlatform(true)); in ProcessIDs() local
681 if (!platform_sp) in ProcessIDs()
685 platform_sp->FindProcesses(match_info, process_infos); in ProcessIDs()
694 lldb::PlatformSP platform_sp(interpreter.GetPlatform(true)); in ProcessNames() local
[all …]
DCommandObjectProcess.cpp338 PlatformSP platform_sp( in DoExecute() local
782 PlatformSP platform_sp = m_interpreter.GetPlatform(true); in DoExecute() local
785 ? platform_sp->ConnectProcess( in DoExecute()
788 : platform_sp->ConnectProcessSynchronous( in DoExecute()
1289 PlatformSP platform_sp = process->GetTarget().GetPlatform(); in DoExecute() local
1290 if (!platform_sp) { in DoExecute()
1297 platform_sp->FetchExtendedCrashInformation(*process); in DoExecute()
/external/llvm-project/lldb/source/Target/
DTargetList.cpp60 PlatformSP &platform_sp, TargetSP &target_sp) { in CreateTarget() argument
62 load_dependent_files, platform_sp, target_sp); in CreateTarget()
72 PlatformSP platform_sp = debugger.GetPlatformList().GetSelectedPlatform(); in CreateTargetInternal() local
89 !platform_options->PlatformMatches(platform_sp)) { in CreateTargetInternal()
91 platform_sp = platform_options->CreatePlatformWithOptions( in CreateTargetInternal()
94 if (!platform_sp) in CreateTargetInternal()
170 if (platform_sp) { in CreateTargetInternal()
171 if (platform_sp->IsCompatibleArchitecture( in CreateTargetInternal()
173 platforms.push_back(platform_sp); in CreateTargetInternal()
181 (!platform_sp || in CreateTargetInternal()
[all …]
DPlatform.cpp163 void Platform::SetHostPlatform(const lldb::PlatformSP &platform_sp) { in SetHostPlatform() argument
166 GetHostPlatformSP() = platform_sp; in SetHostPlatform()
168 if (platform_sp) { in SetHostPlatform()
170 GetPlatformList().push_back(platform_sp); in SetHostPlatform()
281 for (const auto &platform_sp : GetPlatformList()) { in Find() local
282 if (platform_sp->GetName() == name) in Find()
283 return platform_sp; in Find()
291 lldb::PlatformSP platform_sp; in Create() local
300 platform_sp = create_callback(true, nullptr); in Create()
308 if (platform_sp) { in Create()
[all …]
DTarget.cpp88 const lldb::PlatformSP &platform_sp, bool is_dummy_target) in Target() argument
92 ExecutionContextScope(), m_debugger(debugger), m_platform_sp(platform_sp), in Target()
1476 auto platform_sp = GetPlatform(); in SetArchitecture() local
1477 if (!platform_sp || in SetArchitecture()
1478 !platform_sp->IsCompatibleArchitecture(other, false, nullptr)) { in SetArchitecture()
2773 PlatformSP platform_sp(GetPlatform()); in Install() local
2774 if (platform_sp) { in Install()
2775 if (platform_sp->IsRemote()) { in Install()
2776 if (platform_sp->IsConnected()) { in Install()
2793 remote_file = platform_sp->GetRemoteWorkingDirectory(); in Install()
[all …]
DProcess.cpp373 PlatformSP platform_sp = in SetOptionValue() local
376 Platform::GetAugmentedArchSpec(platform_sp.get(), option_arg); in SetOptionValue()
1854 PlatformSP platform_sp(GetTarget().GetPlatform()); in GetSoftwareBreakpointTrapOpcode() local
1855 if (platform_sp) in GetSoftwareBreakpointTrapOpcode()
1856 return platform_sp->GetSoftwareBreakpointTrapOpcode(GetTarget(), bp_site); in GetSoftwareBreakpointTrapOpcode()
2907 PlatformSP platform_sp(GetTarget().GetPlatform()); in Attach() local
2909 if (platform_sp) { in Attach()
2913 platform_sp->FindProcesses(match_info, process_infos); in Attach()
2926 s, platform_sp->GetUserIDResolver(), true, false); in Attach()
3004 PlatformSP platform_sp(GetTarget().GetPlatform()); in CompleteAttach() local
[all …]
/external/llvm-project/lldb/unittests/Platform/
DPlatformAppleSimulatorTest.cpp29 auto platform_sp = Platform::Create(ConstString(name), error); in testSimPlatformArchHasSimEnvironment() local
30 ASSERT_TRUE(platform_sp); in testSimPlatformArchHasSimEnvironment()
35 if (!platform_sp->GetSupportedArchitectureAtIndex(num_arches, arch)) in testSimPlatformArchHasSimEnvironment()
66 auto platform_sp = Platform::Create(arch, nullptr, error); in TEST_F() local
67 EXPECT_TRUE(platform_sp); in TEST_F()
/external/llvm-project/lldb/unittests/Target/
DExecutionContextTest.cpp85 PlatformSP platform_sp; in TEST_F() local
87 *debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp); in TEST_F()
90 ASSERT_TRUE(platform_sp); in TEST_F()
107 PlatformSP platform_sp; in TEST_F() local
109 *debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp); in TEST_F()
112 ASSERT_TRUE(platform_sp); in TEST_F()
DRemoteAwarePlatformTest.cpp78 auto platform_sp = std::make_shared<TargetPlatformTester>(false); in TEST_F() local
79 EXPECT_CALL(*platform_sp, ResolveExecutable(_, _)) in TEST_F()
86 platform.SetRemotePlatform(platform_sp); in TEST_F()
/external/llvm-project/lldb/include/lldb/Target/
DPlatform.h105 static void SetHostPlatform(const lldb::PlatformSP &platform_sp);
961 void Append(const lldb::PlatformSP &platform_sp, bool set_selected) { in Append() argument
963 m_platforms.push_back(platform_sp); in Append()
974 lldb::PlatformSP platform_sp; in GetAtIndex() local
978 platform_sp = m_platforms[idx]; in GetAtIndex()
980 return platform_sp; in GetAtIndex()
997 void SetSelectedPlatform(const lldb::PlatformSP &platform_sp) { in SetSelectedPlatform() argument
998 if (platform_sp) { in SetSelectedPlatform()
1002 if (m_platforms[idx].get() == platform_sp.get()) { in SetSelectedPlatform()
1007 m_platforms.push_back(platform_sp); in SetSelectedPlatform()
DTargetList.h94 lldb::PlatformSP &platform_sp, lldb::TargetSP &target_sp);
197 lldb::PlatformSP &platform_sp,
/external/llvm-project/lldb/source/Plugins/Process/FreeBSD/
DProcessFreeBSD.cpp300 PlatformSP platform_sp(GetTarget().GetPlatform()); in DoAttachToProcessWithID() local
301 assert(platform_sp.get()); in DoAttachToProcessWithID()
302 if (!platform_sp) in DoAttachToProcessWithID()
307 platform_sp->GetProcessInfo(pid, process_info); in DoAttachToProcessWithID()
315 error = platform_sp->ResolveExecutable( in DoAttachToProcessWithID()
497 PlatformSP platform_sp(target->GetPlatform()); in DoDidExec() local
498 assert(platform_sp.get()); in DoDidExec()
499 if (platform_sp) { in DoDidExec()
501 platform_sp->GetProcessInfo(GetID(), process_info); in DoDidExec()
507 Status error = platform_sp->ResolveExecutable( in DoDidExec()
[all …]
/external/llvm-project/lldb/unittests/Thread/
DThreadTest.cpp87 PlatformSP platform_sp; in CreateTarget() local
90 *debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp); in CreateTarget()
/external/llvm-project/lldb/include/lldb/API/
DSBUnixSignals.h59 SBUnixSignals(lldb::PlatformSP &platform_sp);
/external/llvm-project/lldb/unittests/Process/
DProcessEventDataTest.cpp116 PlatformSP platform_sp; in CreateTarget() local
119 *debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp); in CreateTarget()
/external/llvm-project/lldb/include/lldb/Interpreter/
DOptionGroupPlatform.h61 bool PlatformMatches(const lldb::PlatformSP &platform_sp) const;
/external/llvm-project/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/
DDynamicLoaderDarwinKernel.cpp518 PlatformSP platform_sp( in DynamicLoaderDarwinKernel() local
520 if (platform_sp.get()) in DynamicLoaderDarwinKernel()
521 process->GetTarget().SetPlatform(platform_sp); in DynamicLoaderDarwinKernel()
809 PlatformSP platform_sp(target.GetPlatform()); in LoadImageUsingMemoryModule() local
810 if (!m_module_sp && platform_sp) { in LoadImageUsingMemoryModule()
811 ConstString platform_name(platform_sp->GetPluginName()); in LoadImageUsingMemoryModule()
819 platform_sp->GetSharedModule(kext_bundle_module_spec, process, in LoadImageUsingMemoryModule()
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangExpressionSourceCode.cpp309 if (lldb::PlatformSP platform_sp = target->GetPlatform()) { in GetText() local
311 if (platform_sp->GetPluginName() == g_platform_ios_simulator) { in GetText()

12