| /openbsd-src/gnu/llvm/lldb/source/Utility/ |
| H A D | FileSpec.cpp | 38 static constexpr FileSpec::Style GetNativeStyle() { in GetNativeStyle() 40 return FileSpec::Style::windows; in GetNativeStyle() 42 return FileSpec::Style::posix; in GetNativeStyle() 46 bool PathStyleIsPosix(FileSpec::Style style) { in PathStyleIsPosix() 50 const char *GetPathSeparators(FileSpec::Style style) { in GetPathSeparators() 54 char GetPreferredPathSeparator(FileSpec::Style style) { in GetPreferredPathSeparator() 58 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style style) { in Denormalize() 67 FileSpec::FileSpec() : m_style(GetNativeStyle()) {} in FileSpec() function in FileSpec 70 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec() function in FileSpec 74 FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) in FileSpec() function in FileSpec [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Host/ |
| H A D | HostInfoBase.h | 27 class FileSpec; variable 45 using SharedLibraryDirectoryHelper = void(FileSpec &this_file); 73 static FileSpec GetShlibDir(); 77 static FileSpec GetSupportExeDir(); 81 static FileSpec GetHeaderDir(); 85 static FileSpec GetSystemPluginDir(); 89 static FileSpec GetUserPluginDir(); 94 static FileSpec GetProcessTempDir(); 99 static FileSpec GetGlobalTempDir(); 106 static bool ComputePathRelativeToLibrary(FileSpec &file_spec, [all …]
|
| H A D | FileSystem.h | 46 Status Symlink(const FileSpec &src, const FileSpec &dst); 47 Status Readlink(const FileSpec &src, FileSpec &dst); 49 Status ResolveSymbolicLink(const FileSpec &src, FileSpec &dst); 58 Open(const FileSpec &file_spec, File::OpenOptions options, 64 llvm::vfs::directory_iterator DirBegin(const FileSpec &file_spec, 72 llvm::ErrorOr<llvm::vfs::Status> GetStatus(const FileSpec &file_spec) const; 78 llvm::sys::TimePoint<> GetModificationTime(const FileSpec &file_spec) const; 84 uint64_t GetByteSize(const FileSpec &file_spec) const; 93 uint32_t GetPermissions(const FileSpec &file_spec) const; 95 uint32_t GetPermissions(const FileSpec &file_spec, std::error_code &ec) const; [all …]
|
| H A D | ProcessLaunchInfo.h | 35 ProcessLaunchInfo(const FileSpec &stdin_file_spec, 36 const FileSpec &stdout_file_spec, 37 const FileSpec &stderr_file_spec, 38 const FileSpec &working_dir, uint32_t launch_flags); 48 bool AppendOpenFileAction(int fd, const FileSpec &file_spec, bool read, 68 const FileSpec &GetWorkingDirectory() const; 70 void SetWorkingDirectory(const FileSpec &working_dir); 76 const FileSpec &GetShell() const; 78 void SetShell(const FileSpec &shell); 170 FileSpec m_working_dir; [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Utility/ |
| H A D | FileSpec.h | 56 class FileSpec { 60 FileSpec(); 75 explicit FileSpec(llvm::StringRef path, Style style = Style::native); 77 explicit FileSpec(llvm::StringRef path, const llvm::Triple &triple); 79 bool DirectoryEquals(const FileSpec &other) const; 81 bool FileEquals(const FileSpec &other) const; 94 bool operator==(const FileSpec &rhs) const; 107 bool operator!=(const FileSpec &rhs) const; 120 bool operator<(const FileSpec &rhs) const; 183 static int Compare(const FileSpec &lhs, const FileSpec &rhs, bool full); [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Host/common/ |
| H A D | HostInfoBase.cpp | 55 FileSpec m_lldb_so_dir; 57 FileSpec m_lldb_support_exe_dir; 59 FileSpec m_lldb_headers_dir; 61 FileSpec m_lldb_clang_resource_dir; 63 FileSpec m_lldb_system_plugin_dir; 65 FileSpec m_lldb_user_plugin_dir; 67 FileSpec m_lldb_process_tmp_dir; 69 FileSpec m_lldb_global_tmp_dir; 120 FileSpec HostInfoBase::GetShlibDir() { in GetShlibDir() 123 g_fields->m_lldb_so_dir = FileSpec(); in GetShlibDir() [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Target/ |
| H A D | RemoteAwarePlatform.h | 23 bool GetModuleSpec(const FileSpec &module_file_spec, const ArchSpec &arch, 30 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags, 41 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override; 43 Status CreateSymlink(const FileSpec &src, const FileSpec &dst) override; 45 bool GetFileExists(const FileSpec &file_spec) override; 47 Status Unlink(const FileSpec &file_spec) override; 49 FileSpec GetRemoteWorkingDirectory() override; 51 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override; 53 Status MakeDirectory(const FileSpec &file_spec, uint32_t mode) override; 55 Status GetFilePermissions(const FileSpec &file_spec, [all …]
|
| H A D | Platform.h | 52 FileSpec GetModuleCacheDirectory() const; 53 bool SetModuleCacheDirectory(const FileSpec &dir_spec); 56 void SetDefaultModuleCacheDirectory(const FileSpec &dir_spec); 189 FileSpec &sym_file); 193 virtual bool ResolveRemotePath(const FileSpec &platform_path, 194 FileSpec &resolved_platform_path); 248 virtual FileSpec GetRemoteWorkingDirectory() { return m_working_dir; } in GetRemoteWorkingDirectory() 250 virtual bool SetRemoteWorkingDirectory(const FileSpec &working_dir); 280 virtual Status GetFileWithUUID(const FileSpec &platform_file, 281 const UUID *uuid_ptr, FileSpec &local_file); [all …]
|
| H A D | ModuleCache.h | 50 std::function<Status(const ModuleSpec &, const FileSpec &)>; 52 std::function<Status(const lldb::ModuleSP &, const FileSpec &)>; 54 Status GetAndPut(const FileSpec &root_dir_spec, const char *hostname, 61 Status Put(const FileSpec &root_dir_spec, const char *hostname, 62 const ModuleSpec &module_spec, const FileSpec &tmp_file, 63 const FileSpec &target_file); 65 Status Get(const FileSpec &root_dir_spec, const char *hostname,
|
| /openbsd-src/gnu/llvm/lldb/source/Target/ |
| H A D | ModuleCache.cpp | 54 FileSpec m_file_spec; 57 ModuleLock(const FileSpec &root_dir_spec, const UUID &uuid, Status &error); 61 static FileSpec JoinPath(const FileSpec &path1, const char *path2) { in JoinPath() 62 FileSpec result_spec(path1); in JoinPath() 67 static Status MakeDirectory(const FileSpec &dir_path) { in MakeDirectory() 73 FileSpec GetModuleDirectory(const FileSpec &root_dir_spec, const UUID &uuid) { in GetModuleDirectory() 78 FileSpec GetSymbolFileSpec(const FileSpec &module_file_spec) { in GetSymbolFileSpec() 79 return FileSpec(module_file_spec.GetPath() + kSymFileExtension); in GetSymbolFileSpec() 82 void DeleteExistingModule(const FileSpec &root_dir_spec, in DeleteExistingModule() 83 const FileSpec &sysroot_module_path_spec) { in DeleteExistingModule() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTBundleSaver.cpp | 36 static std::string GetRelativePath(const FileSpec &directory, in GetRelativePath() 37 const FileSpec &path) { in GetRelativePath() 43 static llvm::Error WriteBytesToDisk(FileSpec &output_file, in WriteBytesToDisk() 70 static Expected<FileSpec> 72 const FileSpec &directory) { in SaveTraceBundleDescription() 73 FileSpec trace_path = directory; in SaveTraceBundleDescription() 98 BuildThreadsSection(Process &process, FileSpec directory) { in BuildThreadsSection() 102 FileSpec threads_dir = directory; in BuildThreadsSection() 115 FileSpec output_file = threads_dir; in BuildThreadsSection() 137 static Expected<std::optional<FileSpec>> [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Symbol/ |
| H A D | LocateSymbolFile.cpp | 54 static bool FileAtPathContainsArchAndUUID(const FileSpec &file_fspec, in FileAtPathContainsArchAndUUID() 83 const FileSpec &exec_fspec, in LookForDsymNextToExecutablePath() 84 FileSpec &dsym_fspec) { in LookForDsymNextToExecutablePath() 86 FileSpec dsym_directory = exec_fspec; in LookForDsymNextToExecutablePath() 128 FileSpec dsym_yaa_fspec = exec_fspec; in LookForDsymNextToExecutablePath() 160 FileSpec &dsym_fspec) { in LocateDSYMInVincinityOfExecutable() 162 const FileSpec &exec_fspec = module_spec.GetFileSpec(); in LocateDSYMInVincinityOfExecutable() 172 FileSpec parent_dirs = exec_fspec; in LocateDSYMInVincinityOfExecutable() 213 static FileSpec LocateExecutableSymbolFileDsym(const ModuleSpec &module_spec) { in LocateExecutableSymbolFileDsym() 214 const FileSpec *exec_fspec = module_spec.GetFileSpecPtr(); in LocateExecutableSymbolFileDsym() [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Core/ |
| H A D | SourceManager.h | 39 File(const FileSpec &file_spec, Target *target); 40 File(const FileSpec &file_spec, lldb::DebuggerSP debugger_sp); 58 const FileSpec &GetFileSpec() { return m_file_spec; } in GetFileSpec() 71 FileSpec m_file_spec_orig; // The original file spec that was used (can be 73 FileSpec m_file_spec; // The actually file spec being used (if the target 89 void CommonInitializer(const FileSpec &file_spec, Target *target); 103 FileSP FindSourceFile(const FileSpec &file_spec) const; 109 typedef std::map<FileSpec, FileSP> FileCache; 126 DisplaySourceLinesWithLineNumbers(const FileSpec &file, uint32_t line, 141 bool SetDefaultFileAndLine(const FileSpec &file_spec, uint32_t line); [all …]
|
| H A D | FileSpecList.h | 28 typedef std::vector<FileSpec> collection; 43 FileSpecList(std::vector<FileSpec> &&rhs) : m_files(std::move(rhs)) {} in FileSpecList() 68 void Append(const FileSpec &file); 80 bool AppendIfUnique(const FileSpec &file); 117 size_t FindFileIndex(size_t idx, const FileSpec &file, bool full) const; 143 size_t FindCompatibleIndex(size_t idx, const FileSpec &file) const; 158 const FileSpec &GetFileSpecAtIndex(size_t idx) const; 171 const FileSpec *GetFileSpecPointerAtIndex(size_t idx) const; 191 bool Insert(size_t idx, const FileSpec &file) { in Insert() 202 bool Replace(size_t idx, const FileSpec &file) { in Replace()
|
| H A D | ModuleSpec.h | 34 ModuleSpec(const FileSpec &file_spec, const UUID &uuid = UUID(), 43 ModuleSpec(const FileSpec &file_spec, const ArchSpec &arch) in ModuleSpec() 47 FileSpec *GetFileSpecPtr() { return (m_file ? &m_file : nullptr); } in GetFileSpecPtr() 49 const FileSpec *GetFileSpecPtr() const { in GetFileSpecPtr() 53 FileSpec &GetFileSpec() { return m_file; } in GetFileSpec() 55 const FileSpec &GetFileSpec() const { return m_file; } in GetFileSpec() 57 FileSpec *GetPlatformFileSpecPtr() { in GetPlatformFileSpecPtr() 61 const FileSpec *GetPlatformFileSpecPtr() const { in GetPlatformFileSpecPtr() 65 FileSpec &GetPlatformFileSpec() { return m_platform_file; } in GetPlatformFileSpec() 67 const FileSpec &GetPlatformFileSpec() const { return m_platform_file; } in GetPlatformFileSpec() [all …]
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Interpreter/ |
| H A D | OptionValueFileSpec.h | 24 OptionValueFileSpec(const FileSpec &value, bool resolve = true); 26 OptionValueFileSpec(const FileSpec ¤t_value, 27 const FileSpec &default_value, bool resolve = true); 58 FileSpec &GetCurrentValue() { return m_current_value; } in GetCurrentValue() 60 const FileSpec &GetCurrentValue() const { return m_current_value; } in GetCurrentValue() 62 const FileSpec &GetDefaultValue() const { return m_default_value; } in GetDefaultValue() 64 void SetCurrentValue(const FileSpec &value, bool set_value_was_set) { in SetCurrentValue() 71 void SetDefaultValue(const FileSpec &value) { m_default_value = value; } in SetDefaultValue() 78 FileSpec m_current_value; 79 FileSpec m_default_value;
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Platform/gdb-server/ |
| H A D | PlatformRemoteGDBServer.h | 43 bool GetModuleSpec(const FileSpec &module_file_spec, const ArchSpec &arch, 48 Status GetFileWithUUID(const FileSpec &platform_file, const UUID *uuid_ptr, 49 FileSpec &local_file) override; 86 FileSpec GetRemoteWorkingDirectory() override; 88 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override; 102 Status MakeDirectory(const FileSpec &file_spec, 105 Status GetFilePermissions(const FileSpec &file_spec, 108 Status SetFilePermissions(const FileSpec &file_spec, 111 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags, 122 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override; [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Platform/Android/ |
| H A D | AdbClient.h | 22 class FileSpec; variable 41 Status PullFile(const FileSpec &remote_file, const FileSpec &local_file); 43 Status PushFile(const FileSpec &local_file, const FileSpec &remote_file); 45 Status Stat(const FileSpec &remote_file, uint32_t &mode, uint32_t &size, 62 Status internalPullFile(const FileSpec &remote_file, 63 const FileSpec &local_file); 65 Status internalPushFile(const FileSpec &local_file, 66 const FileSpec &remote_file); 68 Status internalStat(const FileSpec &remote_file, uint32_t &mode, 100 const FileSpec &output_file_spec);
|
| /openbsd-src/gnu/llvm/lldb/source/Host/android/ |
| H A D | HostInfoAndroid.cpp | 30 FileSpec HostInfoAndroid::GetDefaultShell() { in GetDefaultShell() 31 return FileSpec("/system/bin/sh"); in GetDefaultShell() 34 FileSpec HostInfoAndroid::ResolveLibraryPath(const std::string &module_path, in ResolveLibraryPath() 43 FileSpec file_spec(module_path.c_str()); in ResolveLibraryPath() 64 return FileSpec(); in ResolveLibraryPath() 71 FileSpec file_candidate(path.str().c_str()); in ResolveLibraryPath() 79 return FileSpec(); in ResolveLibraryPath() 82 bool HostInfoAndroid::ComputeTempFileBaseDirectory(FileSpec &file_spec) { in ComputeTempFileBaseDirectory() 91 file_spec = FileSpec("/data/local/tmp"); in ComputeTempFileBaseDirectory()
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Host/macosx/ |
| H A D | HostInfoMacOSX.h | 29 static FileSpec GetProgramFileSpec(); 30 static FileSpec GetXcodeContentsDirectory(); 31 static FileSpec GetXcodeDeveloperDirectory(); 41 static bool ComputeSupportExeDirectory(FileSpec &file_spec); 44 static bool ComputeHeaderDirectory(FileSpec &file_spec); 45 static bool ComputeSystemPluginsDirectory(FileSpec &file_spec); 46 static bool ComputeUserPluginsDirectory(FileSpec &file_spec);
|
| /openbsd-src/gnu/llvm/lldb/source/API/ |
| H A D | SBFileSpec.cpp | 26 SBFileSpec::SBFileSpec() : m_opaque_up(new lldb_private::FileSpec()) { in SBFileSpec() 36 SBFileSpec::SBFileSpec(const lldb_private::FileSpec &fspec) in SBFileSpec() 37 : m_opaque_up(new lldb_private::FileSpec(fspec)) {} in SBFileSpec() 40 SBFileSpec::SBFileSpec(const char *path) : m_opaque_up(new FileSpec(path)) { in SBFileSpec() 47 : m_opaque_up(new FileSpec(path)) { in SBFileSpec() 117 FileSpec directory{*m_opaque_up}; in GetDirectory() 150 const lldb_private::FileSpec *SBFileSpec::operator->() const { in operator ->() 154 const lldb_private::FileSpec *SBFileSpec::get() const { in get() 158 const lldb_private::FileSpec &SBFileSpec::operator*() const { in operator *() 162 const lldb_private::FileSpec &SBFileSpec::ref() const { return *m_opaque_up; } in ref() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Host/posix/ |
| H A D | FileSystemPosix.cpp | 36 Status FileSystem::Symlink(const FileSpec &src, const FileSpec &dst) { in Symlink() 43 Status FileSystem::Readlink(const FileSpec &src, FileSpec &dst) { in Readlink() 51 dst.SetFile(buf, FileSpec::Style::native); in Readlink() 56 Status FileSystem::ResolveSymbolicLink(const FileSpec &src, FileSpec &dst) { in ResolveSymbolicLink() 70 dst = FileSpec(real_path); in ResolveSymbolicLink()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Platform/MacOSX/ |
| H A D | PlatformDarwinKernel.h | 78 typedef std::multimap<ConstString, FileSpec> BundleIDToKextMap; 81 typedef std::vector<FileSpec> KernelBinaryCollection; 85 typedef std::vector<FileSpec> DirectoriesSearchedCollection; 119 static std::vector<FileSpec> 123 const FileSpec &file_spec); 127 static bool KextHasdSYMSibling(const FileSpec &kext_bundle_filepath); 130 static bool KernelHasdSYMSibling(const FileSpec &kernel_filepath); 134 KerneldSYMHasNoSiblingBinary(const FileSpec &kernel_dsym_filepath); 140 static std::vector<FileSpec> GetDWARFBinaryInDSYMBundle(FileSpec dsym_bundle); 153 Status ExamineKextForMatchingUUID(const FileSpec &kext_bundle_path,
|
| H A D | PlatformDarwin.cpp | 188 PlatformDarwin::PutFile(const lldb_private::FileSpec &source, in PutFile() 189 const lldb_private::FileSpec &destination, uint32_t uid, in PutFile() 210 FileSpec module_spec = module.GetFileSpec(); in LocateExecutableScriptingResources() 216 FileSpec symfile_spec(objfile->GetFileSpec()); in LocateExecutableScriptingResources() 263 FileSpec script_fspec(path_string.GetString()); in LocateExecutableScriptingResources() 265 FileSpec orig_script_fspec(original_path_string.GetString()); in LocateExecutableScriptingResources() 324 FileSpec &sym_file) { in ResolveSymbolFile() 356 const FileSpec &platform_file = module_spec.GetFileSpec(); in GetSharedModule() 360 FileSpec bundle_directory; in GetSharedModule() 389 FileSpec new_file_spec(new_path); in GetSharedModule() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Core/ |
| H A D | FileSpecList.cpp | 25 void FileSpecList::Append(const FileSpec &file_spec) { in Append() 33 bool FileSpecList::AppendIfUnique(const FileSpec &file_spec) { in AppendIfUnique() 60 size_t FileSpecList::FindFileIndex(size_t start_idx, const FileSpec &file_spec, in FindFileIndex() 75 if (FileSpec::Equal(m_files[idx], file_spec, full)) in FindFileIndex() 85 const FileSpec &file_spec) const { in FindCompatibleIndex() 97 const FileSpec &curr_file = m_files[idx]; in FindCompatibleIndex() 106 if (FileSpec::Equal(curr_file, file_spec, full)) { in FindCompatibleIndex() 138 const FileSpec &FileSpecList::GetFileSpecAtIndex(size_t idx) const { in GetFileSpecAtIndex() 141 static FileSpec g_empty_file_spec; in GetFileSpecAtIndex() 145 const FileSpec *FileSpecList::GetFileSpecPointerAtIndex(size_t idx) const { in GetFileSpecPointerAtIndex()
|