aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/include/lldb/Target/Platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/include/lldb/Target/Platform.h')
-rw-r--r--contrib/llvm-project/lldb/include/lldb/Target/Platform.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/contrib/llvm-project/lldb/include/lldb/Target/Platform.h b/contrib/llvm-project/lldb/include/lldb/Target/Platform.h
index 277fcf68cb0c..df46466655c3 100644
--- a/contrib/llvm-project/lldb/include/lldb/Target/Platform.h
+++ b/contrib/llvm-project/lldb/include/lldb/Target/Platform.h
@@ -522,6 +522,9 @@ public:
return UINT64_MAX;
}
+ virtual void AutoCompleteDiskFileOrDirectory(CompletionRequest &request,
+ bool only_dir) {}
+
virtual uint64_t ReadFile(lldb::user_id_t fd, uint64_t offset, void *dst,
uint64_t dst_len, Status &error) {
error.SetErrorStringWithFormat(
@@ -617,7 +620,18 @@ public:
}
virtual lldb_private::Status RunShellCommand(
- const char *command, // Shouldn't be nullptr
+ llvm::StringRef command,
+ const FileSpec &working_dir, // Pass empty FileSpec to use the current
+ // working directory
+ int *status_ptr, // Pass nullptr if you don't want the process exit status
+ int *signo_ptr, // Pass nullptr if you don't want the signal that caused
+ // the process to exit
+ std::string
+ *command_output, // Pass nullptr if you don't want the command output
+ const Timeout<std::micro> &timeout);
+
+ virtual lldb_private::Status RunShellCommand(
+ llvm::StringRef shell, llvm::StringRef command,
const FileSpec &working_dir, // Pass empty FileSpec to use the current
// working directory
int *status_ptr, // Pass nullptr if you don't want the process exit status
@@ -636,7 +650,7 @@ public:
virtual bool CalculateMD5(const FileSpec &file_spec, uint64_t &low,
uint64_t &high);
- virtual int32_t GetResumeCountForLaunchInfo(ProcessLaunchInfo &launch_info) {
+ virtual uint32_t GetResumeCountForLaunchInfo(ProcessLaunchInfo &launch_info) {
return 1;
}
@@ -936,9 +950,6 @@ private:
Platform &remote_platform);
FileSpec GetModuleCacheRoot();
-
- Platform(const Platform &) = delete;
- const Platform &operator=(const Platform &) = delete;
};
class PlatformList {