Home
last modified time | relevance | path

Searched refs:FileSpec (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DFileSpec.cpp39 static constexpr FileSpec::Style GetNativeStyle() { in GetNativeStyle()
41 return FileSpec::Style::windows; in GetNativeStyle()
43 return FileSpec::Style::posix; in GetNativeStyle()
47 bool PathStyleIsPosix(FileSpec::Style style) { in PathStyleIsPosix()
51 const char *GetPathSeparators(FileSpec::Style style) { in GetPathSeparators()
55 char GetPreferredPathSeparator(FileSpec::Style style) { in GetPreferredPathSeparator()
59 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style style) { in Denormalize()
68 FileSpec::FileSpec() : m_style(GetNativeStyle()) {} in FileSpec() function in FileSpec
71 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec() function in FileSpec
75 FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) in FileSpec() function in FileSpec
[all …]
H A DFileSpecList.cpp28 void FileSpecList::Append(const FileSpec &file_spec) { in Append()
36 bool FileSpecList::AppendIfUnique(const FileSpec &file_spec) { in AppendIfUnique()
46 bool SupportFileList::AppendIfUnique(const FileSpec &file_spec) { in AppendIfUnique()
76 static size_t FindFileIndex(size_t start_idx, const FileSpec &file_spec, in FindFileIndex()
78 std::function<const FileSpec &(size_t)> get_ith) { in FindFileIndex()
84 const FileSpec &ith = get_ith(idx); in FindFileIndex()
91 if (FileSpec::Equal(ith, file_spec, full)) in FindFileIndex()
100 size_t FileSpecList::FindFileIndex(size_t start_idx, const FileSpec &file_spec, in FindFileIndex()
104 [&](size_t idx) -> const FileSpec & { return m_files[idx]; }); in FindFileIndex()
108 const FileSpec &file_spec, in FindFileIndex()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DHostInfoBase.h28 class FileSpec; variable
63 using SharedLibraryDirectoryHelper = void(FileSpec &this_file);
91 static FileSpec GetShlibDir();
95 static FileSpec GetSupportExeDir();
99 static FileSpec GetHeaderDir();
103 static FileSpec GetSystemPluginDir();
107 static FileSpec GetUserPluginDir();
112 static FileSpec GetProcessTempDir();
117 static FileSpec GetGlobalTempDir();
124 static bool ComputePathRelativeToLibrary(FileSpec &file_spec,
[all …]
H A DFileSystem.h56 Status Symlink(const FileSpec &src, const FileSpec &dst);
57 Status Readlink(const FileSpec &src, FileSpec &dst);
59 Status ResolveSymbolicLink(const FileSpec &src, FileSpec &dst);
68 Open(const FileSpec &file_spec, File::OpenOptions options,
74 llvm::vfs::directory_iterator DirBegin(const FileSpec &file_spec,
82 llvm::ErrorOr<llvm::vfs::Status> GetStatus(const FileSpec &file_spec) const;
88 llvm::sys::TimePoint<> GetModificationTime(const FileSpec &file_spec) const;
94 uint64_t GetByteSize(const FileSpec &file_spec) const;
103 uint32_t GetPermissions(const FileSpec &file_spec) const;
105 uint32_t GetPermissions(const FileSpec &file_spec, std::error_code &ec) const;
[all …]
H A DProcessLaunchInfo.h34 ProcessLaunchInfo(const FileSpec &stdin_file_spec,
35 const FileSpec &stdout_file_spec,
36 const FileSpec &stderr_file_spec,
37 const FileSpec &working_dir, uint32_t launch_flags);
47 bool AppendOpenFileAction(int fd, const FileSpec &file_spec, bool read,
67 const FileSpec &GetWorkingDirectory() const;
69 void SetWorkingDirectory(const FileSpec &working_dir);
75 const FileSpec &GetShell() const;
77 void SetShell(const FileSpec &shell);
134 FileSpec m_working_dir;
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DFileSpec.h57 class FileSpec {
61 FileSpec();
76 explicit FileSpec(llvm::StringRef path, Style style = Style::native);
78 explicit FileSpec(llvm::StringRef path, const llvm::Triple &triple);
80 bool DirectoryEquals(const FileSpec &other) const;
82 bool FileEquals(const FileSpec &other) const;
95 bool operator==(const FileSpec &rhs) const;
108 bool operator!=(const FileSpec &rhs) const;
121 bool operator<(const FileSpec &rhs) const;
184 static int Compare(const FileSpec &lhs, const FileSpec &rhs, bool full);
[all …]
H A DFileSpecList.h34 void Append(const FileSpec &file) { in Append()
41 bool AppendIfUnique(const FileSpec &file);
43 const FileSpec &GetFileSpecAtIndex(size_t idx) const;
45 size_t FindFileIndex(size_t idx, const FileSpec &file, bool full) const;
75 FindCompatibleIndex(size_t idx, const FileSpec &file,
93 typedef std::vector<FileSpec> collection;
108 FileSpecList(std::vector<FileSpec> &&rhs) : m_files(std::move(rhs)) {} in FileSpecList()
133 void Append(const FileSpec &file);
145 bool AppendIfUnique(const FileSpec &file);
182 size_t FindFileIndex(size_t idx, const FileSpec &file, bool full) const;
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DHostInfoBase.cpp55 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;
122 FileSpec HostInfoBase::GetShlibDir() { in GetShlibDir()
125 g_fields->m_lldb_so_dir = FileSpec(); in GetShlibDir()
[all …]
H A DFileSystem.cpp57 vfs::directory_iterator FileSystem::DirBegin(const FileSpec &file_spec, in DirBegin()
73 FileSystem::GetStatus(const FileSpec &file_spec) const { in GetStatus()
85 FileSystem::GetModificationTime(const FileSpec &file_spec) const { in GetModificationTime()
98 uint64_t FileSystem::GetByteSize(const FileSpec &file_spec) const { in GetByteSize()
111 uint32_t FileSystem::GetPermissions(const FileSpec &file_spec) const { in GetPermissions()
115 uint32_t FileSystem::GetPermissions(const FileSpec &file_spec, in GetPermissions()
139 bool FileSystem::Exists(const FileSpec &file_spec) const { in Exists()
147 bool FileSystem::Readable(const FileSpec &file_spec) const { in Readable()
158 bool FileSystem::IsDirectory(const FileSpec &file_spec) const { in IsDirectory()
168 bool FileSystem::IsLocal(const FileSpec
[all...]
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DRemoteAwarePlatform.h28 bool GetModuleSpec(const FileSpec &module_file_spec, const ArchSpec &arch,
31 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
42 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override;
44 Status CreateSymlink(const FileSpec &src, const FileSpec &dst) override;
46 bool GetFileExists(const FileSpec &file_spec) override;
48 Status Unlink(const FileSpec &file_spec) override;
50 FileSpec GetRemoteWorkingDirectory() override;
52 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override;
54 Status MakeDirectory(const FileSpec &file_spec, uint32_t mode) override;
56 Status GetFilePermissions(const FileSpec &file_spec,
[all …]
H A DPlatform.h57 FileSpec GetModuleCacheDirectory() const;
58 bool SetModuleCacheDirectory(const FileSpec &dir_spec);
61 void SetDefaultModuleCacheDirectory(const FileSpec &dir_spec);
179 FileSpec &sym_file);
183 virtual bool ResolveRemotePath(const FileSpec &platform_path,
184 FileSpec &resolved_platform_path);
238 virtual FileSpec GetRemoteWorkingDirectory() { return m_working_dir; } in GetRemoteWorkingDirectory()
240 virtual bool SetRemoteWorkingDirectory(const FileSpec &working_dir);
270 virtual Status GetFileWithUUID(const FileSpec &platform_file,
271 const UUID *uuid_ptr, FileSpec &local_file);
[all …]
H A DModuleCache.h50 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,
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DModuleCache.cpp54 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 …]
H A DRemoteAwarePlatform.cpp22 bool RemoteAwarePlatform::GetModuleSpec(const FileSpec &module_file_spec, in GetModuleSpec()
39 FileSpec &resolved_file_spec = resolved_module_spec.GetFileSpec(); in ResolveExecutable()
43 FileSpec::Style::native); in ResolveExecutable()
59 llvm::StringRef command, const FileSpec &working_dir, int *status_ptr, in RunShellCommand()
67 llvm::StringRef shell, llvm::StringRef command, const FileSpec &working_dir, in RunShellCommand()
78 Status RemoteAwarePlatform::MakeDirectory(const FileSpec &file_spec, in MakeDirectory()
85 Status RemoteAwarePlatform::GetFilePermissions(const FileSpec &file_spec, in GetFilePermissions()
93 Status RemoteAwarePlatform::SetFilePermissions(const FileSpec &file_spec, in SetFilePermissions()
101 lldb::user_id_t RemoteAwarePlatform::OpenFile(const FileSpec &file_spec, in OpenFile()
131 lldb::user_id_t RemoteAwarePlatform::GetFileSize(const FileSpec &file_spec) { in GetFileSize()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/gdb-server/
H A DPlatformRemoteGDBServer.h43 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 …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTBundleSaver.cpp36 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 …]
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DLocateSymbolFile.cpp
/freebsd/contrib/llvm-project/lldb/include/lldb/Interpreter/
H A DOptionValueFileSpec.h24 OptionValueFileSpec(const FileSpec &value, bool resolve = true);
26 OptionValueFileSpec(const FileSpec &current_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;
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DModuleSpec.h34 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 …]
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBFileSpec.cpp26 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 …]
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DFileSystemPosix.cpp28 Status FileSystem::Symlink(const FileSpec &src, const FileSpec &dst) { in Symlink()
35 Status FileSystem::Readlink(const FileSpec &src, FileSpec &dst) { in Readlink()
43 dst.SetFile(buf, FileSpec::Style::native); in Readlink()
48 Status FileSystem::ResolveSymbolicLink(const FileSpec &src, FileSpec &dst) { in ResolveSymbolicLink()
60 dst = FileSpec(real_path); in ResolveSymbolicLink()
H A DHostInfoPosix.cpp163 FileSpec HostInfoPosix::GetDefaultShell() { in GetDefaultShell()
165 return FileSpec(v); in GetDefaultShell()
167 return FileSpec(password->shell); in GetDefaultShell()
168 return FileSpec("/bin/sh"); in GetDefaultShell()
171 bool HostInfoPosix::ComputeSupportExeDirectory(FileSpec &file_spec) { in ComputeSupportExeDirectory()
179 bool HostInfoPosix::ComputeSystemPluginsDirectory(FileSpec &file_spec) { in ComputeSystemPluginsDirectory()
180 FileSpec temp_file("/usr/" LLDB_INSTALL_LIBDIR_BASENAME "/lldb/plugins"); in ComputeSystemPluginsDirectory()
186 bool HostInfoPosix::ComputeUserPluginsDirectory(FileSpec &file_spec) { in ComputeUserPluginsDirectory()
200 bool HostInfoPosix::ComputeHeaderDirectory(FileSpec &file_spec) { in ComputeHeaderDirectory()
201 FileSpec temp_file("/opt/local/include/lldb"); in ComputeHeaderDirectory()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolLocator/Default/
H A DSymbolLocatorDefault.cpp75 const FileSpec &exec_fspec = module_spec.GetFileSpec(); in LocateExecutableObjectFile()
97 std::optional<FileSpec> SymbolLocatorDefault::LocateExecutableSymbolFile( in LocateExecutableSymbolFile()
100 FileSpec symbol_file_spec = module_spec.GetSymbolFileSpec(); in LocateExecutableSymbolFile()
112 FileSpec module_file_spec = module_spec.GetFileSpec(); in LocateExecutableSymbolFile()
119 FileSpec file_spec(file_dir.AsCString(".")); in LocateExecutableSymbolFile()
128 FileSpec file_spec("."); in LocateExecutableSymbolFile()
137 FileSpec file_spec("/usr/libdata/debug"); in LocateExecutableSymbolFile()
144 FileSpec file_spec("/usr/lib/debug"); in LocateExecutableSymbolFile()
159 FileSpec file_spec("/lib/debug"); in LocateExecutableSymbolFile()
184 FileSpec dirspec = debug_file_search_paths.GetFileSpecAtIndex(idx); in LocateExecutableSymbolFile()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolLocator/DebugSymbols/
H A DSymbolLocatorDebugSymbols.cpp131 const FileSpec *exec_fspec = module_spec.GetFileSpecPtr(); in LocateExecutableObjectFile()
151 FileSpec dsym_filespec(path); in LocateExecutableObjectFile()
233 FileSpec exec_filespec(path); in LocateExecutableObjectFile()
254 FileSpec file_spec(path); in LocateExecutableObjectFile()
270 FileSpec bundle_exe_file_spec(path); in LocateExecutableObjectFile()
329 std::optional<FileSpec> SymbolLocatorDebugSymbols::FindSymbolFileInBundle( in FindSymbolFileInBundle()
330 const FileSpec &dsym_bundle_fspec, const UUID *uuid, const ArchSpec *arch) { in FindSymbolFileInBundle()
345 FileSpec dsym_fspec(Iter->path()); in FindSymbolFileInBundle()
367 static bool FileAtPathContainsArchAndUUID(const FileSpec &file_fspec, in FileAtPathContainsArchAndUUID()
395 const FileSpec &exec_fspec, in LookForDsymNextToExecutablePath()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/API/
H A DSBFileSpec.h83 SBFileSpec(const lldb_private::FileSpec &fspec);
85 void SetFileSpec(const lldb_private::FileSpec &fspec);
87 const lldb_private::FileSpec *operator->() const;
89 const lldb_private::FileSpec *get() const;
91 const lldb_private::FileSpec &operator*() const;
93 const lldb_private::FileSpec &ref() const;
95 std::unique_ptr<lldb_private::FileSpec> m_opaque_up;

12345678910>>...13