[lldb] Fix macos build after e64cc756819d (2/2)
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 30 Mar 2023 21:48:39 +0000 (14:48 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 30 Mar 2023 21:50:45 +0000 (14:50 -0700)
My previous commit was still missing the ctor and the NativeDelegate
parent class.

lldb/tools/lldb-server/lldb-gdbserver.cpp

index 5d32ea1..8d0346c 100644 (file)
@@ -74,13 +74,17 @@ typedef NativeProcessWindows::Manager NativeProcessManager;
 // Dummy implementation to make sure the code compiles
 class NativeProcessManager : public NativeProcessProtocol::Manager {
 public:
+  NativeProcessManager(MainLoop &mainloop)
+      : NativeProcessProtocol::Manager(mainloop) {}
+
   llvm::Expected<std::unique_ptr<NativeProcessProtocol>>
   Launch(ProcessLaunchInfo &launch_info,
-         NativeDelegate &native_delegate) override {
+         NativeProcessProtocol::NativeDelegate &native_delegate) override {
     llvm_unreachable("Not implemented");
   }
   llvm::Expected<std::unique_ptr<NativeProcessProtocol>>
-  Attach(lldb::pid_t pid, NativeDelegate &native_delegate) override {
+  Attach(lldb::pid_t pid,
+         NativeProcessProtocol::NativeDelegate &native_delegate) override {
     llvm_unreachable("Not implemented");
   }
 };