xref: /freebsd/contrib/llvm-project/lldb/include/lldb/Host/posix/HostProcessPosix.h (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
10b57cec5SDimitry Andric //===-- HostProcessPosix.h --------------------------------------*- C++ -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
95ffd83dbSDimitry Andric #ifndef LLDB_HOST_POSIX_HOSTPROCESSPOSIX_H
105ffd83dbSDimitry Andric #define LLDB_HOST_POSIX_HOSTPROCESSPOSIX_H
110b57cec5SDimitry Andric 
120b57cec5SDimitry Andric #include "lldb/Host/HostNativeProcessBase.h"
130b57cec5SDimitry Andric #include "lldb/Utility/Status.h"
140b57cec5SDimitry Andric #include "lldb/lldb-types.h"
150b57cec5SDimitry Andric 
160b57cec5SDimitry Andric namespace lldb_private {
170b57cec5SDimitry Andric 
180b57cec5SDimitry Andric class FileSpec;
190b57cec5SDimitry Andric 
200b57cec5SDimitry Andric class HostProcessPosix : public HostNativeProcessBase {
210b57cec5SDimitry Andric public:
220b57cec5SDimitry Andric   HostProcessPosix();
230b57cec5SDimitry Andric   HostProcessPosix(lldb::process_t process);
240b57cec5SDimitry Andric   ~HostProcessPosix() override;
250b57cec5SDimitry Andric 
260b57cec5SDimitry Andric   virtual Status Signal(int signo) const;
270b57cec5SDimitry Andric   static Status Signal(lldb::process_t process, int signo);
280b57cec5SDimitry Andric 
290b57cec5SDimitry Andric   Status Terminate() override;
300b57cec5SDimitry Andric 
310b57cec5SDimitry Andric   lldb::pid_t GetProcessId() const override;
320b57cec5SDimitry Andric   bool IsRunning() const override;
330b57cec5SDimitry Andric 
340b57cec5SDimitry Andric   llvm::Expected<HostThread>
35*81ad6265SDimitry Andric   StartMonitoring(const Host::MonitorChildProcessCallback &callback) override;
360b57cec5SDimitry Andric };
370b57cec5SDimitry Andric 
380b57cec5SDimitry Andric } // namespace lldb_private
390b57cec5SDimitry Andric 
405ffd83dbSDimitry Andric #endif // LLDB_HOST_POSIX_HOSTPROCESSPOSIX_H
41