LLDB mainline
HostProcessWindows.h
Go to the documentation of this file.
1//===-- HostProcessWindows.h ------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef lldb_Host_HostProcessWindows_h_
10#define lldb_Host_HostProcessWindows_h_
11
13#include "lldb/lldb-types.h"
14
15namespace lldb_private {
16
17class FileSpec;
18
20public:
22 explicit HostProcessWindows(lldb::process_t process);
24
25 void SetOwnsHandle(bool owns);
26
27 Status Terminate() override;
28
29 lldb::pid_t GetProcessId() const override;
30 bool IsRunning() const override;
31
32 virtual llvm::Expected<HostThread>
33 StartMonitoring(const Host::MonitorChildProcessCallback &callback) override;
34
35private:
36 void Close();
37
39};
40}
41
42#endif
lldb::pid_t GetProcessId() const override
virtual llvm::Expected< HostThread > StartMonitoring(const Host::MonitorChildProcessCallback &callback) override
std::function< void(lldb::pid_t pid, int signal, int status)> MonitorChildProcessCallback
Definition: Host.h:69
An error handling class.
Definition: Status.h:44
A class that represents a running process on the host machine.
uint64_t pid_t
Definition: lldb-types.h:83
uint64_t process_t
Definition: lldb-types.h:57