LLDB  mainline
HostProcessPosix.h
Go to the documentation of this file.
1 //===-- HostProcessPosix.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_POSIX_HOSTPROCESSPOSIX_H
10 #define LLDB_HOST_POSIX_HOSTPROCESSPOSIX_H
11 
13 #include "lldb/Utility/Status.h"
14 #include "lldb/lldb-types.h"
15 
16 namespace lldb_private {
17 
18 class FileSpec;
19 
21 public:
24  ~HostProcessPosix() override;
25 
26  virtual Status Signal(int signo) const;
27  static Status Signal(lldb::process_t process, int signo);
28 
29  Status Terminate() override;
30  Status GetMainModule(FileSpec &file_spec) const override;
31 
32  lldb::pid_t GetProcessId() const override;
33  bool IsRunning() const override;
34 
35  llvm::Expected<HostThread>
37  bool monitor_signals) override;
38 };
39 
40 } // namespace lldb_private
41 
42 #endif // LLDB_HOST_POSIX_HOSTPROCESSPOSIX_H
lldb_private::Host::MonitorChildProcessCallback
std::function< bool(lldb::pid_t pid, bool exited, int signal, int status)> MonitorChildProcessCallback
Definition: Host.h:68
lldb_private::HostProcessPosix::HostProcessPosix
HostProcessPosix()
Definition: HostProcessPosix.cpp:23
lldb_private::HostProcessPosix::GetMainModule
Status GetMainModule(FileSpec &file_spec) const override
Definition: HostProcessPosix.cpp:52
lldb_private::HostProcessPosix::IsRunning
bool IsRunning() const override
Definition: HostProcessPosix.cpp:79
lldb_private::FileSpec
Definition: FileSpec.h:56
lldb_private::HostProcessPosix::GetProcessId
lldb::pid_t GetProcessId() const override
Definition: HostProcessPosix.cpp:77
HostNativeProcessBase.h
lldb-types.h
lldb_private::HostProcessPosix
Definition: HostProcessPosix.h:20
lldb_private::Status
Definition: Status.h:44
lldb_private::HostProcessPosix::~HostProcessPosix
~HostProcessPosix() override
lldb::pid_t
uint64_t pid_t
Definition: lldb-types.h:85
lldb::process_t
uint64_t process_t
Definition: lldb-types.h:57
Status.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::HostProcessPosix::Signal
virtual Status Signal(int signo) const
Definition: HostProcessPosix.cpp:31
lldb_private::HostProcessPosix::Terminate
Status Terminate() override
Definition: HostProcessPosix.cpp:50
lldb_private::HostProcessPosix::StartMonitoring
llvm::Expected< HostThread > StartMonitoring(const Host::MonitorChildProcessCallback &callback, bool monitor_signals) override
Definition: HostProcessPosix.cpp:88
lldb_private::HostNativeProcessBase
Definition: HostNativeProcessBase.h:21