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
13#include "lldb/Utility/Status.h"
14#include "lldb/lldb-defines.h"
15#include "lldb/lldb-types.h"
16
17namespace lldb_private {
18
19class HostThread;
20
25
26public:
29 : m_process(process) {}
30 virtual ~HostNativeProcessBase() = default;
31
32 virtual Status Terminate() = 0;
33
34 virtual lldb::pid_t GetProcessId() const = 0;
35 virtual bool IsRunning() const = 0;
36
38
39 virtual llvm::Expected<HostThread>
41
42protected:
44};
45}
46
47#endif
virtual llvm::Expected< HostThread > StartMonitoring(const Host::MonitorChildProcessCallback &callback)=0
HostNativeProcessBase(lldb::process_t process)
const HostNativeProcessBase & operator=(const HostNativeProcessBase &)=delete
virtual ~HostNativeProcessBase()=default
HostNativeProcessBase(const HostNativeProcessBase &)=delete
virtual lldb::pid_t GetProcessId() const =0
virtual bool IsRunning() const =0
std::function< void(lldb::pid_t pid, int signal, int status)> MonitorChildProcessCallback
Definition: Host.h:69
An error handling class.
Definition: Status.h:44
#define LLDB_INVALID_PROCESS
Definition: lldb-types.h:68
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
uint64_t pid_t
Definition: lldb-types.h:81
uint64_t process_t
Definition: lldb-types.h:57