Home
last modified time | relevance | path

Searched refs:GetPath (Results 1 – 25 of 169) sorted by relevance

1234567

/llvm-project/lldb/unittests/Utility/
H A DFileSpecTest.cpp25 EXPECT_STREQ("/foo/bar", fs_posix.GetPath().c_str()); in TEST()
30 EXPECT_STREQ("F:\\bar", fs_windows.GetPath().c_str()); in TEST()
36 EXPECT_STREQ("/", fs_posix_root.GetPath().c_str()); in TEST()
41 EXPECT_STREQ("//net", fs_net_drive.GetPath().c_str()); in TEST()
46 EXPECT_STREQ("//net/", fs_net_root.GetPath().c_str()); in TEST()
51 EXPECT_STREQ("F:", fs_windows_drive.GetPath().c_str()); in TEST()
56 EXPECT_STREQ("F:\\", fs_windows_root.GetPath().c_str()); in TEST()
62 EXPECT_STREQ("/foo/bar/baz", fs_posix_long.GetPath().c_str()); in TEST()
67 EXPECT_STREQ("F:\\bar\\baz", fs_windows_long.GetPath().c_str()); in TEST()
73 EXPECT_STREQ("/foo/bar", fs_posix_trailing_slash.GetPath().c_str()); in TEST()
[all …]
/llvm-project/lldb/source/Target/
H A DModuleCache.cpp70 return fs::create_directories(dir_path.GetPath(), true, fs::perms::owner_all); in MakeDirectory()
79 return FileSpec(module_file_spec.GetPath() + kSymFileExtension); in GetSymbolFileSpec()
104 if (status(sysroot_module_path_spec.GetPath(), st)) in DeleteExistingModule()
111 llvm::sys::fs::remove_directories(module_spec_dir.GetPath()); in DeleteExistingModule()
121 llvm::sys::fs::remove(sysroot_module_path_spec.GetPath()); in DecrementRefExistingModule()
124 llvm::sys::fs::remove(symfile_spec.GetPath()); in DecrementRefExistingModule()
134 platform_module_spec.GetPath().c_str()); in CreateHostSysRootModuleLink()
147 return llvm::sys::fs::create_hard_link(local_module_spec.GetPath(), in CreateHostSysRootModuleLink()
148 sysroot_module_path_spec.GetPath()); in CreateHostSysRootModuleLink()
186 llvm::sys::fs::remove(m_file_spec.GetPath()); in Delete()
[all...]
H A DPlatform.cpp283 strm.Printf("WorkingDir: %s\n", GetWorkingDirectory().GetPath().c_str()); in GetStatus()
405 "unable to setup directory {0} on remote end", dst_dir.GetPath()); in RecurseCopy_Callback()
410 std::string src_dir_path(src.GetPath()); in RecurseCopy_Callback()
464 "invalid file detected during copy: %s", src.GetPath().c_str()); in RecurseCopy_Callback()
476 src.GetPath().c_str(), dst.GetPath().c_str()); in Install()
498 relative_spec.AppendPathComponent(dst.GetPath()); in Install()
503 dst.GetPath().c_str()); in Install()
513 dst.GetPath().c_str()); in Install()
529 src.GetPath() in Install()
[all...]
/llvm-project/lldb/source/Plugins/Platform/MacOSX/
H A DPlatformDarwinKernel.cpp255 strm.Printf("[%d] %s\n", i, m_search_directories[i].GetPath().c_str()); in GetStatus()
263 m_search_directories_no_recursing[i].GetPath().c_str()); in GetStatus()
283 LLDB_LOGF(log, "%s", pos.second.GetPath().c_str()); in GetStatus()
288 LLDB_LOGF(log, "%s", pos.second.GetPath().c_str()); in GetStatus()
292 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus()
296 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus()
300 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus()
304 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus()
321 std::string developer_dir = HostInfo::GetXcodeDeveloperDirectory().GetPath(); in CollectKextAndKernelDirectories()
422 AddRootSubdirsToSearchPaths(thisp, file_spec.GetPath()); in FindKDKandSDKDirectoriesInDirectory()
[all …]
H A DPlatformDarwinDevice.cpp81 sdk_symbols_symlink_fspec.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded()
97 local_sdk_cache.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded()
100 if (local_sdk_cache.GetPath(path, sizeof(path))) { in UpdateSDKDirectoryInfosIfNeeded()
114 m_sdk_directory_infos[i].directory.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded()
137 sdk_symbols_symlink_fspec.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded()
234 m_device_support_directory = fspec.GetPath(); in GetDeviceSupportDirectory()
261 if (sdk_dir_info->directory.GetPath(path, sizeof(path))) { in GetDeviceSupportDirectoryForOSVersion()
284 return llvm::sys::fs::create_directory(module_cache_folder.GetPath()); in MakeCacheFolderForFile()
323 HostInfo::GetSharedCacheImageInfo(module_spec.GetFileSpec().GetPath()); in GetSharedModuleWithLocalCache()
337 module_spec.GetFileSpec().GetPath() in GetSharedModuleWithLocalCache()
[all...]
H A DPlatformDarwin.cpp222 llvm::StringRef(symfile_spec.GetPath()) in LocateExecutableScriptingResources()
288 symfile_spec.GetPath().c_str(), in LocateExecutableScriptingResources()
298 symfile_spec.GetPath().c_str(), reason_for_complaint, in LocateExecutableScriptingResources()
378 platform_file.GetPath(platform_path, sizeof(platform_path)); in GetSharedModule()
380 bundle_directory.GetPath(bundle_dir, sizeof(bundle_dir)); in GetSharedModule()
385 module_search_paths_ptr->GetFileSpecAtIndex(i).GetPath( in GetSharedModule()
681 std::string shell_string = shell.GetPath(); in GetResumeCountForLaunchInfo()
776 sdks_spec.GetPath(), find_directories, find_files, find_other, in FindSDKInXcodeForModules()
992 entry_sp->AddStringItem("image", module->GetFileSpec().GetPath(false)); in ExtractAppSpecificInfo()
1147 if (!FileSystem::Instance().IsDirectory(sysroot_spec.GetPath())) { in GetOSVersion()
[all...]
H A DPlatformRemoteDarwinDevice.cpp62 sdk_dir_info.directory.GetPath().c_str()); in GetStatus()
72 m_sdk_directory_infos[sdk_idx].directory.GetPath(); in GetFileInSDK()
105 if (platform_file.GetPath(platform_file_path, sizeof(platform_file_path))) { in GetSymbolFile()
172 if (platform_file.GetPath(platform_file_path, sizeof(platform_file_path))) { in GetSharedModule()
246 // printf ("sdk[%u]: '%s'\n", sdk_idx, local_file.GetPath().c_str()); in GetSharedModule()
/llvm-project/lldb/unittests/Target/
H A DModuleCacheTest.cpp75 << "uuid_view is: " << uuid_view.GetPath(); in VerifyDiskState()
80 << "sysroot_view is: " << sysroot_view.GetPath(); in VerifyDiskState()
100 EXPECT_STREQ(GetDummyRemotePath().GetPath().c_str(), in TryGetAndPut()
101 module_spec.GetFileSpec().GetPath().c_str()); in TryGetAndPut()
103 s_test_executable, tmp_download_file_spec.GetPath()); in TryGetAndPut()
121 EXPECT_STREQ(GetDummyRemotePath().GetPath().c_str(), in TryGetAndPut()
122 module_sp->GetPlatformFileSpec().GetPath().c_str()); in TryGetAndPut()
143 ec = llvm::sys::fs::copy_file(s_test_executable, uuid_view.GetPath().c_str()); in TEST_F()
H A DPathMappingListTest.cpp37 SCOPED_TRACE(match.original.GetPath() + " -> " + match.remapped.GetPath()); in TestPathMappings()
38 std::string orig_normalized = match.original.GetPath(); in TestPathMappings()
40 map.RemapPath(ConstString(match.original.GetPath()), actual_remapped)); in TestPathMappings()
45 std::string unmapped_path = unmapped_spec.GetPath(); in TestPathMappings()
H A DFindFileTest.cpp51 SCOPED_TRACE(fail.GetPath().c_str()); in TestFileFindings()
56 SCOPED_TRACE(match.original.GetPath() + " -> " + match.remapped); in TestFileFindings()
60 EXPECT_TRUE(FileSpec(*remapped).GetPath() == in TestFileFindings()
/llvm-project/lldb/source/Host/common/
H A DFileSystem.cpp64 return DirBegin(file_spec.GetPath(), ec); in DirBegin()
77 return GetStatus(file_spec.GetPath()); in GetStatus()
88 return GetModificationTime(file_spec.GetPath()); in GetModificationTime()
101 return GetByteSize(file_spec.GetPath()); in GetByteSize()
112 return GetPermissions(file_spec.GetPath()); in GetPermissions()
119 return GetPermissions(file_spec.GetPath(), ec); in GetPermissions()
140 return file_spec && Exists(file_spec.GetPath()); in Exists()
148 return file_spec && Readable(file_spec.GetPath()); in Readable()
159 return file_spec && IsDirectory(file_spec.GetPath()); in IsDirectory()
169 return file_spec && IsLocal(file_spec.GetPath()); in IsLocal()
[all …]
H A DFileAction.cpp28 llvm::StringRef FileAction::GetPath() const { in GetPath() function in FileAction
86 m_file_spec.GetPath().c_str(), m_arg); in Dump()
/llvm-project/lldb/source/Host/posix/
H A DFileSystemPosix.cpp30 if (::symlink(dst.GetPath().c_str(), src.GetPath().c_str()) == -1)
38 ssize_t count = ::readlink(src.GetPath().c_str(), buf, sizeof(buf) - 1); in Symlink()
50 if (!src.GetPath(resolved_path, sizeof(resolved_path))) { in Readlink()
52 "Couldn't get the canonical path for %s", src.GetPath().c_str()); in Readlink()
/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTBundleSaver.cpp38 return path.GetPath().substr(directory.GetPath().size() + 1); in GetRelativePath()
46 output_file.GetPath().c_str(), std::ios::out | std::ios::binary); in WriteBytesToDisk()
54 output_file.GetPath().c_str())); in WriteBytesToDisk()
75 std::ofstream os(trace_path.GetPath()); in SaveTraceBundleDescription()
81 trace_path.GetPath().c_str())); in SaveTraceBundleDescription()
104 sys::fs::create_directories(threads_dir.GetPath().c_str()); in BuildThreadsSection()
201 sys::fs::create_directories(cpus_dir.GetPath().c_str()); in BuildCpusSection()
254 std::string system_path = module_sp->GetPlatformFileSpec().GetPath(); in BuildModulesSection()
259 std::string file = module_sp->GetFileSpec().GetPath(); in BuildModulesSection()
[all...]
H A DTraceIntelPTBundleLoader.cpp398 module.system_path = NormalizePath(module.system_path).GetPath(); in NormalizeAllPaths()
400 module.file = NormalizePath(*module.file).GetPath(); in NormalizeAllPaths()
404 thread.ipt_trace = NormalizePath(*thread.ipt_trace).GetPath(); in NormalizeAllPaths()
411 NormalizePath(cpu.context_switch_trace).GetPath(); in NormalizeAllPaths()
412 cpu.ipt_trace = NormalizePath(cpu.ipt_trace).GetPath(); in NormalizeAllPaths()
417 NormalizePath(bundle_description.kernel->file).GetPath(); in NormalizeAllPaths()
/llvm-project/lldb/source/Utility/
H A DFileSpec.cpp326 std::string path{GetPath(true)}; in Dump()
367 size_t FileSpec::GetPath(char *path, size_t path_max_len, in GetPath() function in FileSpec
372 std::string result = GetPath(denormalize); in GetPath()
377 std::string FileSpec::GetPath(bool denormalize) const { in GetPath() function in FileSpec
379 GetPath(result, denormalize); in GetPath()
384 return ConstString{GetPath(denormalize)}; in GetPathAsConstString()
387 void FileSpec::GetPath(llvm::SmallVectorImpl<char> &path, in GetPath() function in FileSpec
426 GetPath(current_path, false); in CopyByRemovingLastPathComponent()
436 GetPath(current_path, false); in PrependPathComponent()
444 return PrependPathComponent(new_path.GetPath(false)); in PrependPathComponent()
[all …]
/llvm-project/lldb/source/Plugins/SymbolLocator/DebugSymbols/
H A DSymbolLocatorDebugSymbols.cpp134 if (exec_fspec->GetPath(exec_cf_path, sizeof(exec_cf_path))) in LocateExecutableObjectFile()
197 module_spec.GetFileSpec().GetPath().c_str(), in LocateExecutableObjectFile()
206 module_spec.GetFileSpec().GetPath()); in LocateExecutableObjectFile()
217 module_spec.GetFileSpec().GetPath().c_str(), in LocateExecutableObjectFile()
259 switch (get_file_type(file_spec.GetPath())) { in LocateExecutableObjectFile()
331 std::string dsym_bundle_path = dsym_bundle_fspec.GetPath(); in FindSymbolFileInBundle()
480 dsym_fspec.GetPath().c_str()); in LocateDSYMInVincinityOfExecutable()
512 dsym_fspec.GetPath().c_str()); in LocateDSYMInVincinityOfExecutable()
576 if (exec_fspec->GetPath(exec_cf_path, sizeof(exec_cf_path))) in LocateMacOSXFilesUsingDebugSymbols()
639 module_spec.GetFileSpec().GetPath() in LocateMacOSXFilesUsingDebugSymbols()
[all...]
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangHost.cpp53 std::string raw_path = lldb_shlib_spec.GetPath(); in DefaultComputeClangResourceDirectory()
95 std::string raw_path = lldb_shlib_spec.GetPath(); in ComputeClangResourceDirectory()
150 raw_path = lldb_shlib_spec.GetPath(); in ComputeClangResourceDirectory()
168 g_cached_resource_dir.GetPath().c_str()); in GetClangResourceDir()
/llvm-project/lldb/source/Plugins/SymbolVendor/MacOSX/
H A DSymbolVendorMacOSX.cpp102 module_sp->GetFileSpec().GetPath().c_str()); in CreateInstance()
114 module_sp->GetFileSpec().GetPath().c_str()); in CreateInstance()
146 std::string dsym_root = dsym_fspec.GetPath(); in CreateInstance()
260 build_path.GetPath(), source_path.GetPath(), in CreateInstance()
/llvm-project/lldb/source/Plugins/Platform/Android/
H A DPlatformAndroid.cpp212 FileSpec source_spec(source.GetPath(false), FileSpec::Style::posix); in GetFile()
230 std::string source_file = source_spec.GetPath(false); in GetFile()
259 FileSpec destination_spec(destination.GetPath(false), FileSpec::Style::posix); in PutFile()
262 destination_spec.GetPath(false)); in PutFile()
283 std::string source_file = src_file_spec.GetPath(false); in DownloadModuleSlice()
405 module_sp->GetPlatformFileSpec().GetPath(false).c_str(), in DownloadSymbolFile()
406 symfile_platform_filespec.GetPath(false).c_str()); in DownloadSymbolFile()
/llvm-project/lldb/tools/lldb-server/
H A Dlldb-platform.cpp160 Status error(llvm::sys::fs::create_directory(temp_file_spec.GetPath())); in main_platform()
163 "Failed to create directory %s: %s", temp_file_spec.GetPath().c_str(), in main_platform()
167 if (auto Err = llvm::writeToOutput(file_spec.GetPath(), in main_platform()
173 "Failed to atomically write file %s: %s", file_spec.GetPath().c_str(), in main_platform()
532 socket_file.GetPath().c_str(), error.AsCString());
/llvm-project/lldb/source/Host/windows/
H A DFileSystem.cpp33 if (!llvm::ConvertUTF8toWide(src.GetPath(), wsrc) || in Symlink()
34 !llvm::ConvertUTF8toWide(dst.GetPath(), wdst)) in Symlink()
54 if (!llvm::ConvertUTF8toWide(src.GetPath(), wsrc)) { in Readlink()
/llvm-project/lldb/source/API/
H A DSBFileSpec.cpp140 uint32_t SBFileSpec::GetPath(char *dst_path, size_t dst_len) const { in GetPath() function in SBFileSpec
143 uint32_t result = m_opaque_up->GetPath(dst_path, dst_len); in GetPath()
173 if (m_opaque_up->GetPath(path, sizeof(path))) in GetDescription()
/llvm-project/lldb/source/Plugins/Platform/gdb-server/
H A DPlatformRemoteGDBServer.cpp106 const auto module_path = module_file_spec.GetPath(false); in GetModuleSpec()
188 working_dir.GetPath().c_str()); in GetRemoteWorkingDirectory()
202 working_dir.GetPath().c_str()); in SetRemoteWorkingDirectory()
377 args.ReplaceArgumentAtIndex(0, exe_file.GetPath(false)); in LaunchProcess()
549 file_spec.GetPath().c_str(), mode, error.GetError(), in MakeDirectory()
564 file_spec.GetPath().c_str(), file_permissions, error.GetError(), in GetFilePermissions()
579 file_spec.GetPath().c_str(), file_permissions, error.GetError(), in SetFilePermissions()
648 src.GetPath().c_str(), dst.GetPath().c_str(), error.GetError(), in CreateSymlink()
659 file_spec.GetPath() in Unlink()
[all...]
/llvm-project/lldb/include/lldb/Utility/
H A DFileSpec.h299 size_t GetPath(char *path, size_t max_path_length,
309 std::string GetPath(bool denormalize = true) const;
322 void GetPath(llvm::SmallVectorImpl<char> &path,

1234567