1 //===-- HostNativeProcessBase.h ---------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef lldb_Host_HostNativeProcessBase_h_
11 #define lldb_Host_HostNativeProcessBase_h_
13 #include "lldb/Core/Error.h"
14 #include "lldb/Host/HostProcess.h"
15 #include "lldb/lldb-defines.h"
16 #include "lldb/lldb-types.h"
18 namespace lldb_private {
22 class HostNativeProcessBase {
23 DISALLOW_COPY_AND_ASSIGN(HostNativeProcessBase);
26 HostNativeProcessBase() : m_process(LLDB_INVALID_PROCESS) {}
27 explicit HostNativeProcessBase(lldb::process_t process)
28 : m_process(process) {}
29 virtual ~HostNativeProcessBase() {}
31 virtual Error Terminate() = 0;
32 virtual Error GetMainModule(FileSpec &file_spec) const = 0;
34 virtual lldb::pid_t GetProcessId() const = 0;
35 virtual bool IsRunning() const = 0;
37 lldb::process_t GetSystemHandle() const { return m_process; }
40 StartMonitoring(const Host::MonitorChildProcessCallback &callback,
41 bool monitor_signals) = 0;
44 lldb::process_t m_process;