Home
last modified time | relevance | path

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

12345678910>>...16

/llvm-project-15.0.7/lldb/source/Utility/
H A DFileSpec.cpp66 FileSpec::FileSpec() : m_style(GetNativeStyle()) {} in FileSpec() function in FileSpec
228 bool FileSpec::DirectoryEquals(const FileSpec &rhs) const { in DirectoryEquals()
233 bool FileSpec::FileEquals(const FileSpec &rhs) const { in FileEquals()
239 bool FileSpec::operator==(const FileSpec &rhs) const { in operator ==()
247 bool FileSpec::operator<(const FileSpec &rhs) const { in operator <()
272 int FileSpec::Compare(const FileSpec &a, const FileSpec &b, bool full) { in Compare()
293 bool FileSpec::Equal(const FileSpec &a, const FileSpec &b, bool full) { in Equal()
300 bool FileSpec::Match(const FileSpec &pattern, const FileSpec &file) { in Match()
398 FileSpec
405 FileSpec FileSpec::CopyByRemovingLastPathComponent() const { in CopyByRemovingLastPathComponent()
[all …]
H A DReproducerProvider.cpp22 DataRecorder::Create(const FileSpec &filename) { in Create()
31 YamlRecorder::Create(const FileSpec &filename) { in Create()
40 FileSpec file = GetRoot().CopyByAppendingPathComponent(Info::file); in Keep()
60 FileSpec file = GetRoot().CopyByAppendingPathComponent(Info::file); in Keep()
66 ProcessInfoRecorder::Create(const FileSpec &filename) { in Create()
82 FileSpec file = GetRoot().CopyByAppendingPathComponent(Info::file); in Keep()
118 const FileSpec &module_file, in AddSymbolFile()
119 const FileSpec &symbol_file) { in AddSymbolFile()
147 FileSpec file = loader->GetFile<SymbolFileProvider::Info>(); in SymbolFileLoader()
159 std::pair<FileSpec, FileSpec>
[all …]
/llvm-project-15.0.7/lldb/unittests/Utility/
H A DFileSpecTest.cpp16 return FileSpec(path, FileSpec::Style::posix); in PosixSpec()
20 return FileSpec(path, FileSpec::Style::windows); in WindowsSpec()
24 FileSpec fs_posix("/foo/bar", FileSpec::Style::posix); in TEST()
29 FileSpec fs_windows("F:\\bar", FileSpec::Style::windows); in TEST()
35 FileSpec fs_posix_root("/", FileSpec::Style::posix); in TEST()
40 FileSpec fs_net_drive("//net", FileSpec::Style::posix); in TEST()
45 FileSpec fs_net_root("//net/", FileSpec::Style::posix); in TEST()
83 FileSpec fs_posix("/foo", FileSpec::Style::posix); in TEST()
89 FileSpec fs_posix_2("/foo", FileSpec::Style::posix); in TEST()
102 FileSpec fs_posix_root("/", FileSpec::Style::posix); in TEST()
[all …]
H A DReproducerTest.cpp30 DummyProvider(const FileSpec &directory) : Provider(directory) {} in DummyProvider()
43 YamlMultiProvider(const FileSpec &directory) : MultiProvider(directory) {} in YamlMultiProvider()
91 reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)), in TEST()
94 EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix), in TEST()
96 EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix), in TEST()
112 reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)), in TEST()
118 EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix), in TEST()
126 reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)), in TEST()
141 reproducer.SetCapture(FileSpec("//bogus/path", FileSpec::Style::posix)), in TEST()
146 EXPECT_EQ(FileSpec("//bogus/path", FileSpec::Style::posix), in TEST()
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Host/
H A DHostInfoBase.h26 class FileSpec; variable
71 static FileSpec GetShlibDir();
75 static FileSpec GetSupportExeDir();
79 static FileSpec GetHeaderDir();
83 static FileSpec GetSystemPluginDir();
87 static FileSpec GetUserPluginDir();
92 static FileSpec GetProcessTempDir();
97 static FileSpec GetGlobalTempDir();
107 static FileSpec GetXcodeContentsDirectory() { return {}; } in GetXcodeContentsDirectory()
108 static FileSpec GetXcodeDeveloperDirectory() { return {}; } in GetXcodeDeveloperDirectory()
[all …]
H A DFileSystem.h46 Status Symlink(const FileSpec &src, const FileSpec &dst);
47 Status Readlink(const FileSpec &src, FileSpec &dst);
49 Status ResolveSymbolicLink(const FileSpec &src, FileSpec &dst);
101 bool Exists(const FileSpec &file_spec) const;
107 bool Readable(const FileSpec &file_spec) const;
113 bool IsDirectory(const FileSpec &file_spec) const;
119 bool IsLocal(const FileSpec &file_spec) const;
132 void Resolve(FileSpec &file_spec);
139 Status RemoveFile(const FileSpec &file_spec);
160 bool ResolveExecutableLocation(FileSpec &file_spec);
[all …]
H A DProcessLaunchInfo.h35 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 …]
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DFileSpec.h56 class FileSpec {
60 FileSpec();
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);
185 static bool Equal(const FileSpec &a, const FileSpec &b, bool full);
191 static bool Match(const FileSpec &pattern, const FileSpec &file);
[all …]
H A DReproducer.h43 const FileSpec &GetRoot() const { return m_root; } in GetRoot()
63 ProviderBase(const FileSpec &root) : m_root(root) {} in ProviderBase()
67 FileSpec m_root;
92 Generator(FileSpec root);
132 const FileSpec &GetRoot() const;
147 FileSpec m_root;
158 Loader(FileSpec root, bool passive = false);
160 template <typename T> FileSpec GetFile() { in GetFile()
168 FileSpec file = GetFile<typename T::Info>(); in LoadBuffer()
183 FileSpec m_root;
[all …]
H A DReproducerProvider.h39 const FileSpec &GetFilename() { return m_filename; } in GetFilename()
47 FileSpec m_filename;
61 Create(const FileSpec &filename);
80 Create(const FileSpec &filename);
171 WorkingDirectoryProvider(const FileSpec &directory) in WorkingDirectoryProvider()
191 HomeDirectoryProvider(const FileSpec &directory) in HomeDirectoryProvider()
210 const FileSpec &symbol_path);
295 CommandProvider(const FileSpec &directory) in CommandProvider()
307 Create(const FileSpec &filename);
359 FileSpec absolute_path = in Create()
[all …]
/llvm-project-15.0.7/lldb/source/Host/common/
H A DHostInfoBase.cpp54 FileSpec m_lldb_so_dir;
56 FileSpec m_lldb_support_exe_dir;
58 FileSpec m_lldb_headers_dir;
60 FileSpec m_lldb_clang_resource_dir;
62 FileSpec m_lldb_system_plugin_dir;
64 FileSpec m_lldb_user_plugin_dir;
66 FileSpec m_lldb_process_tmp_dir;
68 FileSpec m_lldb_global_tmp_dir;
119 FileSpec HostInfoBase::GetShlibDir() { in GetShlibDir()
272 FileSpec temp_file_spec; in ComputeProcessTempFileDirectory()
[all …]
/llvm-project-15.0.7/lldb/unittests/Target/
H A DModuleCacheTest.cpp31 FileSpec s_cache_dir;
46 static FileSpec GetDummyRemotePath() { in GetDummyRemotePath()
47 FileSpec fs("/", FileSpec::Style::posix); in GetDummyRemotePath()
53 static FileSpec GetUuidView(FileSpec spec) { in GetUuidView()
60 static FileSpec GetSysrootView(FileSpec spec, const char *hostname) { in GetSysrootView()
73 FileSpec uuid_view = GetUuidView(cache_dir); in VerifyDiskState()
84 void ModuleCacheTest::TryGetAndPut(const FileSpec &cache_dir, in TryGetAndPut()
127 FileSpec test_cache_dir = s_cache_dir; in TEST_F()
136 FileSpec test_cache_dir = s_cache_dir; in TEST_F()
139 FileSpec uuid_view = GetUuidView(test_cache_dir); in TEST_F()
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Target/
H A DRemoteAwarePlatform.h40 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override;
42 Status CreateSymlink(const FileSpec &src, const FileSpec &dst) override;
44 bool GetFileExists(const FileSpec &file_spec) override;
46 Status Unlink(const FileSpec &file_spec) override;
48 FileSpec GetRemoteWorkingDirectory() override;
50 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override;
54 Status GetFilePermissions(const FileSpec &file_spec,
57 Status SetFilePermissions(const FileSpec &file_spec,
60 bool CalculateMD5(const FileSpec &file_spec, uint64_t &low,
64 FileSpec &local_file) override;
[all …]
H A DPlatform.h51 FileSpec GetModuleCacheDirectory() const;
52 bool SetModuleCacheDirectory(const FileSpec &dir_spec);
188 FileSpec &sym_file);
469 FileSpec GetWorkingDirectory();
471 bool SetWorkingDirectory(const FileSpec &working_dir);
508 virtual Status GetFile(const FileSpec &source, const FileSpec &destination);
510 virtual Status PutFile(const FileSpec &source, const FileSpec &destination,
539 virtual Status Install(const FileSpec &src, const FileSpec &dst);
545 virtual Status Unlink(const FileSpec &file_spec);
724 virtual FileSpec LocateExecutable(const char *basename) { return FileSpec(); } in LocateExecutable()
[all …]
/llvm-project-15.0.7/lldb/source/Target/
H A DModuleCache.cpp54 FileSpec m_file_spec;
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()
115 void DecrementRefExistingModule(const FileSpec &root_dir_spec, in DecrementRefExistingModule()
193 const FileSpec &target_file) { in Put()
[all …]
/llvm-project-15.0.7/lldb/source/Symbol/
H A DLocateSymbolFile.cpp83 FileSpec dsym_directory = exec_fspec; in LookForDsymNextToExecutablePath()
125 FileSpec dsym_yaa_fspec = exec_fspec; in LookForDsymNextToExecutablePath()
169 FileSpec parent_dirs = exec_fspec; in LocateDSYMInVincinityOfExecutable()
220 FileSpec symbol_fspec; in LocateExecutableSymbolFileDsym()
259 FileSpec
290 FileSpec file_spec("."); in LocateExecutableSymbolFile()
299 FileSpec file_spec("/usr/libdata/debug"); in LocateExecutableSymbolFile()
306 FileSpec file_spec("/usr/lib/debug"); in LocateExecutableSymbolFile()
354 FileSpec file_spec(filename); in LocateExecutableSymbolFile()
402 FileSpec Symbols::FindSymbolFileInBundle(const FileSpec &symfile_bundle, in FindSymbolFileInBundle()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTBundleSaver.cpp72 static Expected<FileSpec>
74 const FileSpec &directory) { in SaveTraceBundleDescription()
75 FileSpec trace_path = directory; in SaveTraceBundleDescription()
104 FileSpec threads_dir = directory; in BuildThreadsSection()
117 FileSpec output_file = threads_dir; in BuildThreadsSection()
139 static Expected<Optional<FileSpec>>
142 FileSpec output_context_switch_trace = cpus_dir; in WriteContextSwitchTrace()
182 FileSpec output_trace = cpus_dir; in WriteIntelPTTrace()
201 FileSpec cpus_dir = directory; in BuildCpusSection()
217 if (Expected<FileSpec> ipt_trace_path = in BuildCpusSection()
[all …]
/llvm-project-15.0.7/lldb/unittests/Core/
H A DSourceLocationSpecTest.cpp19 SourceLocationSpec invalid(FileSpec(), 0); in TEST()
22 SourceLocationSpec invalid_filespec(FileSpec(), 4); in TEST()
25 SourceLocationSpec invalid_line(FileSpec("/foo/bar"), 0); in TEST()
28 SourceLocationSpec valid_fs_line_no_column(FileSpec("/foo/bar"), 4); in TEST()
31 SourceLocationSpec invalid_fs_column(FileSpec(), 4, 0); in TEST()
45 FileSpec fs("/foo/bar", FileSpec::Style::posix); in TEST()
71 FileSpec fs, uint32_t line, in Create()
81 const FileSpec fs("/foo/bar", FileSpec::Style::posix); in TEST()
82 const FileSpec other_fs("/foo/baz", FileSpec::Style::posix); in TEST()
128 FileSpec fs("/foo/bar", FileSpec::Style::posix); in TEST()
[all …]
/llvm-project-15.0.7/lldb/unittests/Host/
H A DProcessLaunchInfoTest.cpp16 ProcessLaunchInfo Info(FileSpec("/stdin"), FileSpec("/stdout"), in TEST()
17 FileSpec("/stderr"), FileSpec("/wd"), in TEST()
19 EXPECT_EQ(FileSpec("/stdin"), in TEST()
21 EXPECT_EQ(FileSpec("/stdout"), in TEST()
23 EXPECT_EQ(FileSpec("/stderr"), in TEST()
25 EXPECT_EQ(FileSpec("/wd"), Info.GetWorkingDirectory()); in TEST()
/llvm-project-15.0.7/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);
54 FileSpec &GetCurrentValue() { return m_current_value; } in GetCurrentValue()
56 const FileSpec &GetCurrentValue() const { return m_current_value; } in GetCurrentValue()
58 const FileSpec &GetDefaultValue() const { return m_default_value; } in GetDefaultValue()
60 void SetCurrentValue(const FileSpec &value, bool set_value_was_set) { in SetCurrentValue()
67 void SetDefaultValue(const FileSpec &value) { m_default_value = value; } in SetDefaultValue()
74 FileSpec m_current_value;
75 FileSpec m_default_value;
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DSourceManager.h38 File(const FileSpec &file_spec, Target *target);
39 File(const FileSpec &file_spec, lldb::DebuggerSP debugger_sp);
57 const FileSpec &GetFileSpec() { return m_file_spec; } in GetFileSpec()
88 void CommonInitializer(const FileSpec &file_spec, Target *target);
102 FileSP FindSourceFile(const FileSpec &file_spec) const;
108 typedef std::map<FileSpec, FileSP> FileCache;
125 DisplaySourceLinesWithLineNumbers(const FileSpec &file, uint32_t line,
140 bool SetDefaultFileAndLine(const FileSpec &file_spec, uint32_t line);
142 bool GetDefaultFileAndLine(FileSpec &file_spec, uint32_t &line);
152 FileSP GetFile(const FileSpec &file_spec);
[all …]
H A DModuleSpec.h49 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()
69 FileSpec *GetSymbolFileSpecPtr() { in GetSymbolFileSpecPtr()
73 const FileSpec *GetSymbolFileSpecPtr() const { in GetSymbolFileSpecPtr()
77 FileSpec &GetSymbolFileSpec() { return m_symbol_file; } in GetSymbolFileSpec()
262 FileSpec m_file;
263 FileSpec m_platform_file;
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Platform/gdb-server/
H A DPlatformRemoteGDBServer.h48 FileSpec &local_file) override;
85 FileSpec GetRemoteWorkingDirectory() override;
87 bool SetRemoteWorkingDirectory(const FileSpec &working_dir) override;
101 Status MakeDirectory(const FileSpec &file_spec,
104 Status GetFilePermissions(const FileSpec &file_spec,
107 Status SetFilePermissions(const FileSpec &file_spec,
121 lldb::user_id_t GetFileSize(const FileSpec &file_spec) override;
126 Status PutFile(const FileSpec &source, const FileSpec &destination,
129 Status CreateSymlink(const FileSpec &src, const FileSpec &dst) override;
131 bool GetFileExists(const FileSpec &file_spec) override;
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Platform/Android/
H A DAdbClient.h22 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);
/llvm-project-15.0.7/lldb/source/Host/android/
H A DHostInfoAndroid.cpp30 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()

12345678910>>...16