LLDB
mainline
|
#include <NativeProcessLinux.h>
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... | |
![]() | |
virtual | ~Factory () |
Definition at line 43 of file NativeProcessLinux.h.
|
overridevirtual |
Attach to an existing process.
[in] | pid | pid of the process locatable |
[in] | native_delegate | The delegate that will receive messages regarding the inferior. Must outlive the NativeProcessProtocol instance. |
[in] | mainloop | The mainloop instance with which the process can register callbacks. Must outlive the NativeProcessProtocol instance. |
Implements lldb_private::NativeProcessProtocol::Factory.
Definition at line 267 of file NativeProcessLinux.cpp.
References lldb_private::GetLog(), and LLDB_LOG.
|
overridevirtual |
Get the bitmask of extensions supported by this process plugin.
Reimplemented from lldb_private::NativeProcessProtocol::Factory.
Definition at line 287 of file NativeProcessLinux.cpp.
References fork(), and HWCAP2_MTE.
|
overridevirtual |
Launch a process for debugging.
[in] | launch_info | Information required to launch the process. |
[in] | native_delegate | The delegate that will receive messages regarding the inferior. Must outlive the NativeProcessProtocol instance. |
[in] | mainloop | The mainloop instance with which the process can register callbacks. Must outlive the NativeProcessProtocol instance. |
Implements lldb_private::NativeProcessProtocol::Factory.
Definition at line 220 of file NativeProcessLinux.cpp.
References lldb_private::Status::Fail(), lldb_private::GetLog(), lldb_private::HostProcess::GetProcessId(), lldb_private::ProcessLaunchInfo::GetPTY(), lldb_private::ProcessLauncherPosixFork::LaunchProcess(), LLDB_LOG, MaybeLogLaunchInfo(), lldb_private::PseudoTerminal::ReleasePrimaryFileDescriptor(), and lldb_private::Status::ToError().