[lldb/qemu] Implement GetMmapArgumentList
authorPavel Labath <pavel@labath.sk>
Mon, 10 Jan 2022 15:34:39 +0000 (16:34 +0100)
committerPavel Labath <pavel@labath.sk>
Tue, 11 Jan 2022 13:08:03 +0000 (14:08 +0100)
By forwarding it to the host platform.

lldb/source/Plugins/Platform/QemuUser/PlatformQemuUser.h

index 71df1b7..c5439e1 100644 (file)
@@ -47,6 +47,14 @@ public:
 
   Environment GetEnvironment() override;
 
+  MmapArgList GetMmapArgumentList(const ArchSpec &arch, lldb::addr_t addr,
+                                  lldb::addr_t length, unsigned prot,
+                                  unsigned flags, lldb::addr_t fd,
+                                  lldb::addr_t offset) override {
+    return Platform::GetHostPlatform()->GetMmapArgumentList(
+        arch, addr, length, prot, flags, fd, offset);
+  }
+
 private:
   static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
   static void DebuggerInitialize(Debugger &debugger);