| /llvm-project-15.0.7/lldb/source/Target/ |
| H A D | ModuleCache.cpp | 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() 186 llvm::sys::fs::remove(m_file_spec.GetPath()); in Delete() 199 const auto tmp_file_path = tmp_file.GetPath(); in Put() 204 module_file_path.GetPath().c_str(), in Put() [all …]
|
| H A D | Platform.cpp | 447 std::string src_dir_path(src.GetPath()); in RecurseCopy_Callback() 513 src.GetPath().c_str(), dst.GetPath().c_str()); in Install() 540 dst.GetPath().c_str()); in Install() 550 dst.GetPath().c_str()); in Install() 565 src.GetPath().c_str(), dst.GetPath().c_str(), in Install() 566 fixed_dst.GetPath().c_str()); in Install() 574 llvm::sys::fs::remove(fixed_dst.GetPath()); in Install() 584 std::string src_dir_path(src.GetPath()); in Install() 593 llvm::sys::fs::remove(fixed_dst.GetPath()); in Install() 598 llvm::sys::fs::remove(fixed_dst.GetPath()); in Install() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/Platform/MacOSX/ |
| H A D | PlatformDarwinKernel.cpp | 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() 308 LLDB_LOGF(log, "%s", fs.GetPath().c_str()); in GetStatus() 506 file_spec.GetPath().c_str()); in GetKernelsAndKextsInDirectoryHelper() 512 file_spec.GetPath().c_str()); in GetKernelsAndKextsInDirectoryHelper() 518 file_spec.GetPath().c_str()); in GetKernelsAndKextsInDirectoryHelper() 535 search_here_too = plugins.GetPath(); in GetKernelsAndKextsInDirectoryHelper() 580 CFCBundle bundle(file_spec.GetPath().c_str()); in AddKextToMap() 592 file_spec.GetPath().c_str()); in AddKextToMap() [all …]
|
| H A D | PlatformDarwinDevice.cpp | 80 sdk_symbols_symlink_fspec.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded() 96 local_sdk_cache.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded() 99 if (local_sdk_cache.GetPath(path, sizeof(path))) { in UpdateSDKDirectoryInfosIfNeeded() 136 sdk_symbols_symlink_fspec.GetPath().c_str()); in UpdateSDKDirectoryInfosIfNeeded() 224 m_device_support_directory = fspec.GetPath(); in GetDeviceSupportDirectory() 251 if (sdk_dir_info->directory.GetPath(path, sizeof(path))) { in GetDeviceSupportDirectoryForOSVersion() 327 module_spec.GetFileSpec().GetPath().c_str()); in GetSharedModuleWithLocalCache() 337 module_spec.GetFileSpec().GetPath()); in GetSharedModuleWithLocalCache() 349 module_spec.GetFileSpec().GetPath().c_str(), in GetSharedModuleWithLocalCache() 350 local_spec.GetFileSpec().GetPath().c_str()); in GetSharedModuleWithLocalCache() [all …]
|
| H A D | PlatformDarwin.cpp | 217 llvm::StringRef(symfile_spec.GetPath()) in LocateExecutableScriptingResources() 284 symfile_spec.GetPath().c_str(), in LocateExecutableScriptingResources() 375 platform_file.GetPath(platform_path, sizeof(platform_path)); in GetSharedModule() 377 bundle_directory.GetPath(bundle_dir, sizeof(bundle_dir)); in GetSharedModule() 382 module_search_paths_ptr->GetFileSpecAtIndex(i).GetPath( in GetSharedModule() 678 std::string shell_string = shell.GetPath(); in GetResumeCountForLaunchInfo() 772 sdks_spec.GetPath(), find_directories, find_files, find_other, in FindSDKInXcodeForModules() 1076 if (FileSystem::Instance().IsDirectory(sysroot_spec.GetPath())) { in AddClangModuleCompilationOptionsForSDKType() 1078 options.push_back(sysroot_spec.GetPath()); in AddClangModuleCompilationOptionsForSDKType() 1155 cmd_line_lldb_resources.GetPath().c_str()); in LocateExecutable() [all …]
|
| H A D | PlatformRemoteDarwinDevice.cpp | 61 sdk_dir_info.directory.GetPath().c_str()); in GetStatus() 118 resolved_module_spec.GetFileSpec().GetPath().c_str()); in ResolveExecutable() 124 resolved_module_spec.GetFileSpec().GetPath().c_str()); in ResolveExecutable() 136 m_sdk_directory_infos[sdk_idx].directory.GetPath(); in GetFileInSDK() 169 if (platform_file.GetPath(platform_file_path, sizeof(platform_file_path))) { in GetSymbolFile() 236 if (platform_file.GetPath(platform_file_path, sizeof(platform_file_path))) { in GetSharedModule()
|
| H A D | PlatformAppleSimulator.cpp | 95 std::string developer_dir = HostInfo::GetXcodeDeveloperDirectory().GetPath(); in GetStatus() 141 std::string developer_dir = HostInfo::GetXcodeDeveloperDirectory().GetPath(); in ConnectRemote() 245 const std::string core_sim_path(GetCoreSimulatorPath().GetPath()); in LoadCoreSimulator() 256 std::string developer_dir = HostInfo::GetXcodeDeveloperDirectory().GetPath(); in GetSimulatorDevice() 428 resolved_module_spec.GetFileSpec().GetPath().c_str()); in ResolveExecutable() 433 module_spec.GetFileSpec().GetPath().c_str()); in ResolveExecutable() 444 if (platform_file.GetPath(platform_file_path, sizeof(platform_file_path))) { in GetSymbolFile()
|
| /llvm-project-15.0.7/lldb/source/Host/common/ |
| H A D | FileSystem.cpp | 75 return DirBegin(file_spec.GetPath(), ec); in DirBegin() 88 return GetStatus(file_spec.GetPath()); in GetStatus() 99 return GetModificationTime(file_spec.GetPath()); in GetModificationTime() 112 return GetByteSize(file_spec.GetPath()); in GetByteSize() 123 return GetPermissions(file_spec.GetPath()); in GetPermissions() 130 return GetPermissions(file_spec.GetPath(), ec); in GetPermissions() 151 return file_spec && Exists(file_spec.GetPath()); in Exists() 219 file_spec.GetPath(path, false); in MakeAbsolute() 263 file_spec.GetPath(path); in Resolve() 457 auto path = file_spec.GetPath(); in Open() [all …]
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | FileSpec.cpp | 324 std::string path{GetPath(true)}; in Dump() 352 std::string result = GetPath(denormalize); in GetPath() 357 std::string FileSpec::GetPath(bool denormalize) const { in GetPath() function in FileSpec 359 GetPath(result, denormalize); in GetPath() 407 GetPath(current_path, false); in CopyByRemovingLastPathComponent() 416 GetPath(current_path, false); in GetLastPathComponent() 423 GetPath(current_path, false); in PrependPathComponent() 436 GetPath(current_path, false); in AppendPathComponent() 442 return AppendPathComponent(new_path.GetPath(false)); in AppendPathComponent() 447 GetPath(current_path, false); in RemoveLastPathComponent() [all …]
|
| H A D | ReproducerProvider.cpp | 42 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_TextWithCRLF); in Keep() 61 m_collector->writeMapping(file.GetPath()); in Keep() 79 files.push_back(recorder->GetFilename().GetPath()); in Keep() 84 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_TextWithCRLF); in Keep() 122 m_symbol_files.emplace_back(uuid->GetAsString(), module_file.GetPath(), in AddSymbolFile() 123 symbol_file.GetPath()); in AddSymbolFile() 129 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_TextWithCRLF); in Keep() 151 auto error_or_file = llvm::MemoryBuffer::getFile(file.GetPath()); in SymbolFileLoader()
|
| H A D | Reproducer.cpp | 40 auto ec = sys::fs::create_directory(root->GetPath()); in Initialize() 125 file_spec.GetPath(path, false); in MakeAbsolute() 172 llvm::sys::fs::remove_directories(m_root.GetPath()); in Discard() 186 auto strm = std::make_unique<raw_fd_ostream>(index.GetPath(), EC, in AddProvidersToIndex() 208 auto error_or_file = MemoryBuffer::getFile(index.GetPath()); in LoadIndex()
|
| H A D | GDBRemote.cpp | 102 files.push_back(recorder->GetFilename().GetPath()); in Keep() 107 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_TextWithCRLF); in Keep() 154 history_file.GetPath(), EC, sys::fs::OpenFlags::OF_TextWithCRLF); in GetHistoryStream()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTBundleSaver.cpp | 40 return path.GetPath().substr(directory.GetPath().size() + 1); in GetRelativePath() 48 output_file.GetPath().c_str(), std::ios::out | std::ios::binary); in WriteBytesToDisk() 56 output_file.GetPath().c_str())); in WriteBytesToDisk() 77 std::ofstream os(trace_path.GetPath()); in SaveTraceBundleDescription() 83 trace_path.GetPath().c_str())); in SaveTraceBundleDescription() 256 std::string system_path = module_sp->GetPlatformFileSpec().GetPath(); in BuildModulesSection() 261 std::string file = module_sp->GetFileSpec().GetPath(); in BuildModulesSection() 281 llvm::sys::fs::copy_file(file, path_to_copy_module.GetPath())) in BuildModulesSection() 342 sys::fs::create_directories(directory.GetPath().c_str())) in SaveToDisk()
|
| H A D | TraceIntelPTBundleLoader.cpp | 299 module.system_path = NormalizePath(module.system_path).GetPath(); in NormalizeAllPaths() 301 module.file = NormalizePath(*module.file).GetPath(); in NormalizeAllPaths() 305 thread.ipt_trace = NormalizePath(*thread.ipt_trace).GetPath(); in NormalizeAllPaths() 311 NormalizePath(cpu.context_switch_trace).GetPath(); in NormalizeAllPaths() 312 cpu.ipt_trace = NormalizePath(cpu.ipt_trace).GetPath(); in NormalizeAllPaths()
|
| /llvm-project-15.0.7/lldb/unittests/Target/ |
| H A D | PathMappingListTest.cpp | 37 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() 44 std::string unmapped_path = unmapped_spec.GetPath(); in TestPathMappings()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangHost.cpp | 52 std::string raw_path = lldb_shlib_spec.GetPath(); in DefaultComputeClangResourceDirectory() 90 std::string raw_path = lldb_shlib_spec.GetPath(); in ComputeClangResourceDirectory() 145 raw_path = lldb_shlib_spec.GetPath(); in ComputeClangResourceDirectory() 163 g_cached_resource_dir.GetPath().c_str()); in GetClangResourceDir()
|
| /llvm-project-15.0.7/lldb/source/Symbol/ |
| H A D | LocateSymbolFileMacOSX.cpp | 100 if (exec_fspec->GetPath(exec_cf_path, sizeof(exec_cf_path))) in LocateMacOSXFilesUsingDebugSymbols() 163 module_spec.GetFileSpec().GetPath().c_str(), in LocateMacOSXFilesUsingDebugSymbols() 172 module_spec.GetFileSpec().GetPath()); in LocateMacOSXFilesUsingDebugSymbols() 183 module_spec.GetFileSpec().GetPath().c_str(), in LocateMacOSXFilesUsingDebugSymbols() 225 switch (get_file_type(file_spec.GetPath())) { in LocateMacOSXFilesUsingDebugSymbols() 295 std::string dsym_bundle_path = dsym_bundle_fspec.GetPath(); in FindSymbolFileInBundle() 439 DBGSourcePath = resolved_source_path.GetPath(); in GetModuleSpecInfoFromUUIDDictionary() 455 build_path.GetPath(), source_path.GetPath(), true); in GetModuleSpecInfoFromUUIDDictionary() 485 DBGSourcePath = resolved_source_path.GetPath(); in GetModuleSpecInfoFromUUIDDictionary() 580 dsym_for_uuid_exe_spec.GetPath(g_dsym_for_uuid_exe_path, in DownloadObjectAndSymbolFile() [all …]
|
| H A D | LocateSymbolFile.cpp | 165 dsym_fspec.GetPath().c_str()); in LocateDSYMInVincinityOfExecutable() 197 dsym_fspec.GetPath().c_str()); in LocateDSYMInVincinityOfExecutable() 334 std::string dirname = dirspec.GetPath(); in LocateExecutableSymbolFile() 357 if (llvm::sys::fs::equivalent(file_spec.GetPath(), in LocateExecutableSymbolFile() 358 module_file_spec.GetPath())) in LocateExecutableSymbolFile()
|
| H A D | ObjectFile.cpp | 59 module_sp->GetFileSpec().GetPath().c_str(), in FindPlugin() 86 file->GetPath(), g_initial_bytes_to_read, file_offset); in FindPlugin() 94 module_sp->GetFileSpec().GetPath(path_with_object); in FindPlugin() 119 archive_file.GetPath(), g_initial_bytes_to_read, file_offset); in FindPlugin() 162 module_sp->GetFileSpec().GetPath().c_str(), in FindPlugin() 194 file.GetPath(), g_initial_bytes_to_read, file_offset); in GetModuleSpecifications() 261 m_file ? m_file.GetPath().c_str() : "<NULL>", m_file_offset, in ObjectFile() 661 return FileSystem::Instance().CreateDataBuffer(file.GetPath(), Size, Offset); in MapFileData()
|
| /llvm-project-15.0.7/lldb/tools/lldb-server/ |
| H A D | lldb-platform.cpp | 100 Status error(llvm::sys::fs::create_directory(temp_file_spec.GetPath())); in save_socket_id_to_file() 107 temp_file_path = temp_file_spec.GetPath(); in save_socket_id_to_file() 112 temp_file_path, file_spec.GetPath(), socket_id), in save_socket_id_to_file() 129 file_spec.GetPath().c_str(), in save_socket_id_to_file() 135 file_spec.GetPath().c_str()); in save_socket_id_to_file() 303 socket_file.GetPath().c_str(), error.AsCString()); in main_platform()
|
| /llvm-project-15.0.7/lldb/include/lldb/Utility/ |
| H A D | ReproducerProvider.h | 35 m_os(filename.GetPath(), ec, llvm::sys::fs::OF_TextWithCRLF), in AbstractRecorder() 103 directory.CopyByAppendingPathComponent("root").GetPath(), in FileProvider() 104 directory.GetPath()); in FileProvider() 154 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_TextWithCRLF); in Keep() 270 files.push_back(recorder->GetFilename().GetPath()); in Keep() 275 llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_TextWithCRLF); in Keep() 347 auto error_or_file = llvm::MemoryBuffer::getFile(file.GetPath()); in Create() 361 file = absolute_path.GetPath(); in Create()
|
| H A D | FileSpec.h | 290 size_t GetPath(char *path, size_t max_path_length, 300 std::string GetPath(bool denormalize = true) const; 307 void GetPath(llvm::SmallVectorImpl<char> &path,
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolVendor/MacOSX/ |
| H A D | SymbolVendorMacOSX.cpp | 104 module_sp->GetFileSpec().GetPath().c_str()); in CreateInstance() 116 module_sp->GetFileSpec().GetPath().c_str()); in CreateInstance() 142 std::string dsym_root = dsym_fspec.GetPath(); in CreateInstance() 256 build_path.GetPath(), source_path.GetPath(), in CreateInstance()
|
| /llvm-project-15.0.7/lldb/source/API/ |
| H A D | SBFileSpec.cpp | 140 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-15.0.7/lldb/source/Host/posix/ |
| H A D | FileSystemPosix.cpp | 46 ssize_t count = ::readlink(src.GetPath().c_str(), buf, sizeof(buf) - 1); in Readlink() 58 if (!src.GetPath(resolved_path, sizeof(resolved_path))) { in ResolveSymbolicLink()
|