Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd-src/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.cpp23 void FileSpecList::Append(const FileSpec &file_spec) { in Append()
31 bool FileSpecList::AppendIfUnique(const FileSpec &file_spec) { in AppendIfUnique()
41 bool SupportFileList::AppendIfUnique(const FileSpec &file_spec) { in AppendIfUnique()
71 static size_t FindFileIndex(size_t start_idx, const FileSpec &file_spec, in FindFileIndex()
73 std::function<const FileSpec &(size_t)> get_ith) { in FindFileIndex()
79 const FileSpec &ith = get_ith(idx); in FindFileIndex()
86 if (FileSpec::Equal(ith, file_spec, full)) in FindFileIndex()
95 size_t FileSpecList::FindFileIndex(size_t start_idx, const FileSpec &file_spec, in FindFileIndex()
99 [&](size_t idx) -> const FileSpec & { return m_files[idx]; }); in FindFileIndex()
103 const FileSpec &file_spec, in FindFileIndex()
[all …]
/freebsd-src/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-src/contrib/llvm-project/lldb/include/lldb/Utility/
H A DFileSpec.h56 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 …]
H A DFileSpecList.h12 #include "lldb/Utility/FileSpec.h"
34 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;
70 size_t FindCompatibleIndex(size_t idx, const FileSpec &file) const;
78 collection m_files; ///< A collection of FileSpec objects.
84 /// A class that contains a mutable list of FileSpec objects.
87 typedef std::vector<FileSpec> collection;
102 FileSpecList(std::vector<FileSpec>
[all...]
/freebsd-src/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;
120 FileSpec HostInfoBase::GetShlibDir() { in GetShlibDir()
123 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 &file_spec) const { in IsLocal()
[all …]
/freebsd-src/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
[all...]
H A DPlatform.h26 #include "lldb/Utility/FileSpec.h"
54 FileSpec GetModuleCacheDirectory() const;
55 bool SetModuleCacheDirectory(const FileSpec &dir_spec);
58 void SetDefaultModuleCacheDirectory(const FileSpec &dir_spec);
176 FileSpec &sym_file);
178 /// Resolves the FileSpec to a (possibly) remote path. Remote platforms must
180 virtual bool ResolveRemotePath(const FileSpec &platform_path,
181 FileSpec &resolved_platform_path);
235 virtual FileSpec GetRemoteWorkingDirectory() { return m_working_dir; } in GetRemoteOSBuildString()
237 virtual bool SetRemoteWorkingDirectory(const FileSpec in GetRemoteOSBuildString()
[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-src/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 ResolveExecutable()
67 llvm::StringRef shell, llvm::StringRef command, const FileSpec &working_dir, in ResolveExecutable()
78 Status RemoteAwarePlatform::MakeDirectory(const FileSpec &file_spec, in ResolveExecutable()
85 Status RemoteAwarePlatform::GetFilePermissions(const FileSpec &file_spec, in ResolveExecutable()
93 Status RemoteAwarePlatform::SetFilePermissions(const FileSpec &file_spec, in ResolveExecutable()
101 lldb::user_id_t RemoteAwarePlatform::OpenFile(const FileSpec &file_spec, in ResolveExecutable()
131 lldb::user_id_t RemoteAwarePlatform::GetFileSize(const FileSpec in ResolveExecutable()
[all...]
H A DPlatform.cpp37 #include "lldb/Utility/FileSpec.h"
92 module_cache_dir = FileSpec(user_home_dir.c_str()); in PlatformProperties()
109 FileSpec PlatformProperties::GetModuleCacheDirectory() const { in GetModuleCacheDirectory()
110 return GetPropertyAtIndexAs<FileSpec>(ePropertyModuleCacheDirectory, {}); in GetModuleCacheDirectory()
113 bool PlatformProperties::SetModuleCacheDirectory(const FileSpec &dir_spec) { in SetModuleCacheDirectory()
119 const FileSpec &dir_spec) { in SetDefaultModuleCacheDirectory()
151 Status Platform::GetFileWithUUID(const FileSpec &platform_file, in GetFileWithUUID()
152 const UUID *uuid_ptr, FileSpec &local_file) { in GetFileWithUUID()
204 bool Platform::GetModuleSpec(const FileSpec &module_file_spec, in GetSharedModule()
360 FileSpec Platfor in GetOSVersion()
[all...]
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Core/
H A DSourceManager.h40 File(const FileSpec &file_spec, lldb::TargetSP target_sp);
41 File(const FileSpec &file_spec, lldb::DebuggerSP debugger_sp);
59 const FileSpec &GetFileSpec() { return m_file_spec; } in GetFileSpec()
73 void SetFileSpec(FileSpec file_spec);
77 FileSpec m_file_spec_orig; // The original file spec that was used (can be
79 FileSpec m_file_spec; // The actually file spec being used (if the target
96 void CommonInitializer(const FileSpec &file_spec, lldb::TargetSP target_sp);
113 void AddSourceFile(const FileSpec &file_spec, FileSP file_sp);
116 FileSP FindSourceFile(const FileSpec &file_spec) const;
124 void AddSourceFileImpl(const FileSpec &file_spec, FileSP file_sp);
[all …]
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-src/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-src/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-src/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
[all...]
/freebsd-src/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-src/contrib/llvm-project/lldb/source/Host/posix/
H A DFileSystemPosix.cpp36 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()
/freebsd-src/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;
/freebsd-src/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 in LookForDsymNextToExecutablePath()
[all...]
/freebsd-src/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 dirspe in LocateExecutableSymbolFile()
[all...]

12345678910>>...12