[lldb] Fix two more issues in Windows following rL365226: Change LaunchThread interface to return an expected

A couple of the function signatures changed and they were not updated in the Windows HostProcess

llvm-svn: 365388
This commit is contained in:
Stella Stamenova 2019-07-08 21:17:58 +00:00
parent 2f07c2e9d9
commit 05590baa07
2 changed files with 4 additions and 3 deletions

View 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);

View 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;
}