LLDB  mainline
HostNativeProcessBase.h
Go to the documentation of this file.
1 //===-- HostNativeProcessBase.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_HostNativeProcessBase_h_
10 #define lldb_Host_HostNativeProcessBase_h_
11 
12 #include "lldb/Host/HostProcess.h"
13 #include "lldb/Utility/Status.h"
14 #include "lldb/lldb-defines.h"
15 #include "lldb/lldb-types.h"
16 
17 namespace lldb_private {
18 
19 class HostThread;
20 
22  DISALLOW_COPY_AND_ASSIGN(HostNativeProcessBase);
23 
24 public:
27  : m_process(process) {}
29 
30  virtual Status Terminate() = 0;
31  virtual Status GetMainModule(FileSpec &file_spec) const = 0;
32 
33  virtual lldb::pid_t GetProcessId() const = 0;
34  virtual bool IsRunning() const = 0;
35 
37 
38  virtual HostThread
40  bool monitor_signals) = 0;
41 
42 protected:
44 };
45 }
46 
47 #endif
virtual Status GetMainModule(FileSpec &file_spec) const =0
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
virtual HostThread StartMonitoring(const Host::MonitorChildProcessCallback &callback, bool monitor_signals)=0
uint64_t process_t
Definition: lldb-types.h:57
A file utility class.
Definition: FileSpec.h:55
virtual bool IsRunning() const =0
#define LLDB_INVALID_PROCESS
Definition: lldb-types.h:78
HostNativeProcessBase(lldb::process_t process)
uint64_t pid_t
Definition: lldb-types.h:85
std::function< bool(lldb::pid_t pid, bool exited, int signal, int status)> MonitorChildProcessCallback
Definition: Host.h:68
virtual lldb::pid_t GetProcessId() const =0
An error handling class.
Definition: Status.h:44