]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/lldb/Host/posix/HostProcessPosix.h
Vendor import of lldb trunk r303197:
[FreeBSD/FreeBSD.git] / include / lldb / Host / posix / HostProcessPosix.h
1 //===-- HostProcessPosix.h --------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef lldb_Host_HostProcesPosix_h_
11 #define lldb_Host_HostProcesPosix_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Host/HostNativeProcessBase.h"
18 #include "lldb/Utility/Status.h"
19 #include "lldb/lldb-types.h"
20
21 namespace lldb_private {
22
23 class FileSpec;
24
25 class HostProcessPosix : public HostNativeProcessBase {
26 public:
27   HostProcessPosix();
28   HostProcessPosix(lldb::process_t process);
29   ~HostProcessPosix() override;
30
31   virtual Status Signal(int signo) const;
32   static Status Signal(lldb::process_t process, int signo);
33
34   Status Terminate() override;
35   Status GetMainModule(FileSpec &file_spec) const override;
36
37   lldb::pid_t GetProcessId() const override;
38   bool IsRunning() const override;
39
40   HostThread StartMonitoring(const Host::MonitorChildProcessCallback &callback,
41                              bool monitor_signals) override;
42 };
43
44 } // namespace lldb_private
45
46 #endif // lldb_Host_HostProcesPosix_h_