LLDB  mainline
Public Member Functions | List of all members
lldb_private::process_linux::NativeProcessLinux::Factory Class Reference

#include <NativeProcessLinux.h>

Inheritance diagram for lldb_private::process_linux::NativeProcessLinux::Factory:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::process_linux::NativeProcessLinux::Factory:
Collaboration graph
[legend]

Public Member Functions

llvm::Expected< std::unique_ptr< NativeProcessProtocol > > Launch (ProcessLaunchInfo &launch_info, NativeDelegate &native_delegate, MainLoop &mainloop) const override
 Launch a process for debugging. More...
 
llvm::Expected< std::unique_ptr< NativeProcessProtocol > > Attach (lldb::pid_t pid, NativeDelegate &native_delegate, MainLoop &mainloop) const override
 Attach to an existing process. More...
 
Extension GetSupportedExtensions () const override
 Get the bitmask of extensions supported by this process plugin. More...
 
- Public Member Functions inherited from lldb_private::NativeProcessProtocol::Factory
virtual ~Factory ()
 

Detailed Description

Definition at line 43 of file NativeProcessLinux.h.

Member Function Documentation

◆ Attach()

llvm::Expected< std::unique_ptr< NativeProcessProtocol > > NativeProcessLinux::Factory::Attach ( lldb::pid_t  pid,
NativeDelegate native_delegate,
MainLoop mainloop 
) const
overridevirtual

Attach to an existing process.

Parameters
[in]pidpid of the process locatable
[in]native_delegateThe delegate that will receive messages regarding the inferior. Must outlive the NativeProcessProtocol instance.
[in]mainloopThe mainloop instance with which the process can register callbacks. Must outlive the NativeProcessProtocol instance.
Returns
A NativeProcessProtocol shared pointer if the operation succeeded or an error object if it failed.

Implements lldb_private::NativeProcessProtocol::Factory.

Definition at line 270 of file NativeProcessLinux.cpp.

References lldb_private::GetLogIfAllCategoriesSet(), LLDB_LOG, and POSIX_LOG_PROCESS.

◆ GetSupportedExtensions()

NativeProcessLinux::Extension NativeProcessLinux::Factory::GetSupportedExtensions ( ) const
overridevirtual

Get the bitmask of extensions supported by this process plugin.

Returns
A NativeProcessProtocol::Extension bitmask.

Reimplemented from lldb_private::NativeProcessProtocol::Factory.

Definition at line 292 of file NativeProcessLinux.cpp.

References fork(), and HWCAP2_MTE.

◆ Launch()

llvm::Expected< std::unique_ptr< NativeProcessProtocol > > NativeProcessLinux::Factory::Launch ( ProcessLaunchInfo launch_info,
NativeDelegate native_delegate,
MainLoop mainloop 
) const
overridevirtual

Launch a process for debugging.

Parameters
[in]launch_infoInformation required to launch the process.
[in]native_delegateThe delegate that will receive messages regarding the inferior. Must outlive the NativeProcessProtocol instance.
[in]mainloopThe mainloop instance with which the process can register callbacks. Must outlive the NativeProcessProtocol instance.
Returns
A NativeProcessProtocol shared pointer if the operation succeeded or an error object if it failed.

Implements lldb_private::NativeProcessProtocol::Factory.

Definition at line 218 of file NativeProcessLinux.cpp.

References lldb_private::Status::Fail(), lldb_private::GetLogIfAllCategoriesSet(), lldb_private::HostProcess::GetProcessId(), lldb_private::ProcessLaunchInfo::GetPTY(), lldb_private::ProcessLauncherPosixFork::LaunchProcess(), LLDB_LOG, MaybeLogLaunchInfo(), POSIX_LOG_PROCESS, lldb_private::PseudoTerminal::ReleasePrimaryFileDescriptor(), and lldb_private::Status::ToError().


The documentation for this class was generated from the following files: