]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/lldb/Host/posix/HostProcessPosix.h
Import LLDB as of upstream SVN r216948 (git 50f7fe44)
[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 #include "lldb/lldb-types.h"
14 #include "lldb/Core/Error.h"
15 #include "lldb/Target/ProcessLaunchInfo.h"
16
17 namespace lldb_private
18 {
19
20 class FileSpec;
21
22 class HostProcessPosix
23 {
24   public:
25     static const lldb::pid_t kInvalidProcessId;
26
27     HostProcessPosix();
28     ~HostProcessPosix();
29
30     Error Signal(int signo) const;
31     static Error Signal(lldb::pid_t pid, int signo);
32
33     Error Create(lldb::pid_t pid);
34     Error Terminate(int signo);
35     Error GetMainModule(FileSpec &file_spec) const;
36
37     lldb::pid_t GetProcessId() const;
38     bool IsRunning() const;
39
40   private:
41
42     lldb::pid_t m_pid;
43 };
44 }
45
46 #endif