[lldb] Fix two more issues in Windows following rL365226: Change LaunchThread interfa...
authorStella Stamenova <stilis@microsoft.com>
Mon, 8 Jul 2019 21:17:58 +0000 (21:17 +0000)
committerStella Stamenova <stilis@microsoft.com>
Mon, 8 Jul 2019 21:17:58 +0000 (21:17 +0000)
A couple of the function signatures changed and they were not updated in the Windows HostProcess

llvm-svn: 365388

lldb/include/lldb/Host/windows/HostProcessWindows.h
lldb/source/Host/windows/HostProcessWindows.cpp

index 4178956..925d565 100644 (file)
@@ -30,8 +30,9 @@ public:
   lldb::pid_t GetProcessId() const override;
   bool IsRunning() const override;
 
-  HostThread StartMonitoring(const Host::MonitorChildProcessCallback &callback,
-                             bool monitor_signals) override;
+  virtual llvm::Expected<HostThread>
+  StartMonitoring(const Host::MonitorChildProcessCallback &callback,
+                  bool monitor_signals) override;
 
 private:
   static lldb::thread_result_t MonitorThread(void *thread_arg);
index c422a86..d7484f8 100644 (file)
@@ -94,7 +94,7 @@ llvm::Expected<HostThread> HostProcessWindows::StartMonitoring(
                         &info->process_handle, 0, FALSE, DUPLICATE_SAME_ACCESS))
     result = ThreadLauncher::LaunchThread("ChildProcessMonitor",
                                           HostProcessWindows::MonitorThread,
-                                          info, nullptr);
+                                          info);
   return result;
 }