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 
15 namespace lldb_private {
16 
17 class FileSpec;
18 
20 public:
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 
35 private:
36  void Close();
37 
39 };
40 }
41 
42 #endif
lldb_private::HostProcessWindows::Terminate
Status Terminate() override
Definition: HostProcessWindows.cpp:40
lldb_private::HostProcessWindows::GetProcessId
lldb::pid_t GetProcessId() const override
Definition: HostProcessWindows.cpp:51
lldb_private::HostProcessWindows::IsRunning
bool IsRunning() const override
Definition: HostProcessWindows.cpp:55
lldb_private::HostProcessWindows::SetOwnsHandle
void SetOwnsHandle(bool owns)
Definition: HostProcessWindows.cpp:38
lldb_private::Host::MonitorChildProcessCallback
std::function< void(lldb::pid_t pid, int signal, int status)> MonitorChildProcessCallback
Definition: Host.h:69
lldb_private::HostProcessWindows::HostProcessWindows
HostProcessWindows()
Definition: HostProcessWindows.cpp:30
HostNativeProcessBase.h
lldb_private::HostProcessWindows
Definition: HostProcessWindows.h:19
lldb_private::HostProcessWindows::Close
void Close()
Definition: HostProcessWindows.cpp:96
lldb_private::HostProcessWindows::~HostProcessWindows
~HostProcessWindows()
Definition: HostProcessWindows.cpp:36
lldb-types.h
lldb_private::Status
Definition: Status.h:44
lldb_private::HostProcessWindows::m_owns_handle
bool m_owns_handle
Definition: HostProcessWindows.h:38
lldb::pid_t
uint64_t pid_t
Definition: lldb-types.h:85
lldb::process_t
uint64_t process_t
Definition: lldb-types.h:57
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::HostProcessWindows::StartMonitoring
virtual llvm::Expected< HostThread > StartMonitoring(const Host::MonitorChildProcessCallback &callback) override
Definition: HostProcessWindows.cpp:78
lldb_private::HostNativeProcessBase
Definition: HostNativeProcessBase.h:21