LLDB  mainline
Public Member Functions | List of all members
lldb_private::NativeProcessProtocol::Factory Class Referenceabstract

#include <NativeProcessProtocol.h>

Inheritance diagram for lldb_private::NativeProcessProtocol::Factory:
Inheritance graph
[legend]

Public Member Functions

virtual ~Factory ()
 
virtual llvm::Expected< std::unique_ptr< NativeProcessProtocol > > Launch (ProcessLaunchInfo &launch_info, NativeDelegate &native_delegate, MainLoop &mainloop) const =0
 Launch a process for debugging. More...
 
virtual llvm::Expected< std::unique_ptr< NativeProcessProtocol > > Attach (lldb::pid_t pid, NativeDelegate &native_delegate, MainLoop &mainloop) const =0
 Attach to an existing process. More...
 

Detailed Description

Definition at line 213 of file NativeProcessProtocol.h.

Constructor & Destructor Documentation

◆ ~Factory()

NativeProcessProtocol::Factory::~Factory ( )
virtualdefault

Member Function Documentation

◆ Attach()

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

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.

Implemented in lldb_private::process_linux::NativeProcessLinux::Factory, and lldb_private::process_netbsd::NativeProcessNetBSD::Factory.

Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::AttachToProcess().

◆ Launch()

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

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.

Implemented in lldb_private::process_linux::NativeProcessLinux::Factory, and lldb_private::process_netbsd::NativeProcessNetBSD::Factory.

Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::LaunchProcess().


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