LLDB  mainline
MonitoringProcessLauncher.h
Go to the documentation of this file.
1 //===-- MonitoringProcessLauncher.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_MONITORINGPROCESSLAUNCHER_H
10 #define LLDB_HOST_MONITORINGPROCESSLAUNCHER_H
11 
12 #include <memory>
14 
15 namespace lldb_private {
16 
18 public:
20  std::unique_ptr<ProcessLauncher> delegate_launcher);
21 
22  /// Launch the process specified in launch_info. The monitoring callback in
23  /// launch_info must be set, and it will be called when the process
24  /// terminates.
25  HostProcess LaunchProcess(const ProcessLaunchInfo &launch_info,
26  Status &error) override;
27 
28 private:
29  std::unique_ptr<ProcessLauncher> m_delegate_launcher;
30 };
31 
32 } // namespace lldb_private
33 
34 #endif // LLDB_HOST_MONITORINGPROCESSLAUNCHER_H
lldb_private::HostProcess
Definition: HostProcess.h:33
error
static llvm::raw_ostream & error(Stream &strm)
Definition: CommandReturnObject.cpp:17
lldb_private::MonitoringProcessLauncher::MonitoringProcessLauncher
MonitoringProcessLauncher(std::unique_ptr< ProcessLauncher > delegate_launcher)
Definition: MonitoringProcessLauncher.cpp:20
lldb_private::ProcessLaunchInfo
Definition: ProcessLaunchInfo.h:31
lldb_private::MonitoringProcessLauncher::LaunchProcess
HostProcess LaunchProcess(const ProcessLaunchInfo &launch_info, Status &error) override
Launch the process specified in launch_info.
Definition: MonitoringProcessLauncher.cpp:25
lldb_private::ProcessLauncher
Definition: ProcessLauncher.h:18
lldb_private::Status
Definition: Status.h:44
lldb_private::MonitoringProcessLauncher::m_delegate_launcher
std::unique_ptr< ProcessLauncher > m_delegate_launcher
Definition: MonitoringProcessLauncher.h:29
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
ProcessLauncher.h
lldb_private::MonitoringProcessLauncher
Definition: MonitoringProcessLauncher.h:17