LLDB
mainline
|
#include <NativeProcessFreeBSD.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 33 of file NativeProcessFreeBSD.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 108 of file NativeProcessFreeBSD.cpp.
References lldb_private::GetLog(), LLDB_LOG, lldb_private::Status::Success(), and lldb_private::Status::ToError().
|
overridevirtual |
Get the bitmask of extensions supported by this process plugin.
Reimplemented from lldb_private::NativeProcessProtocol::Factory.
Definition at line 132 of file NativeProcessFreeBSD.cpp.
References fork().
|
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 54 of file NativeProcessFreeBSD.cpp.
References lldb::eStateStopped, lldb_private::Status::Fail(), lldb_private::GetLog(), lldb_private::HostProcess::GetProcessId(), lldb_private::ProcessLaunchInfo::GetPTY(), lldb_private::ProcessLauncherPosixFork::LaunchProcess(), LLDB_LOG, lldb_private::PseudoTerminal::ReleasePrimaryFileDescriptor(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedBySignal(), SIGSTOP, and lldb_private::Status::ToError().