LLDB mainline
|
#include <NativeProcessFreeBSD.h>
Public Member Functions | |
llvm::Expected< std::unique_ptr< NativeProcessProtocol > > | Launch (ProcessLaunchInfo &launch_info, NativeDelegate &native_delegate) override |
Launch a process for debugging. | |
llvm::Expected< std::unique_ptr< NativeProcessProtocol > > | Attach (lldb::pid_t pid, NativeDelegate &native_delegate) override |
Attach to an existing process. | |
Extension | GetSupportedExtensions () const override |
Get the bitmask of extensions supported by this process plugin. | |
Public Member Functions inherited from lldb_private::NativeProcessProtocol::Manager | |
Manager (MainLoop &mainloop) | |
Manager (const Manager &)=delete | |
Manager & | operator= (const Manager &)=delete |
virtual | ~Manager () |
virtual llvm::Expected< std::unique_ptr< NativeProcessProtocol > > | Launch (ProcessLaunchInfo &launch_info, NativeDelegate &native_delegate)=0 |
Launch a process for debugging. | |
virtual llvm::Expected< std::unique_ptr< NativeProcessProtocol > > | Attach (lldb::pid_t pid, NativeDelegate &native_delegate)=0 |
Attach to an existing process. | |
virtual Extension | GetSupportedExtensions () const |
Get the bitmask of extensions supported by this process plugin. | |
Additional Inherited Members | |
Protected Attributes inherited from lldb_private::NativeProcessProtocol::Manager | |
MainLoop & | m_mainloop |
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::Manager.
Definition at line 126 of file NativeProcessFreeBSD.cpp.
References lldb_private::GetLog(), lldb_private::Host::GetProcessInfo(), LLDB_LOG, lldb_private::Process, 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::Manager.
Definition at line 149 of file NativeProcessFreeBSD.cpp.
References lldb_private::NativeProcessProtocol::auxv, lldb_private::NativeProcessProtocol::fork, lldb_private::NativeProcessProtocol::libraries_svr4, lldb_private::NativeProcessProtocol::multiprocess, lldb_private::NativeProcessProtocol::pass_signals, lldb_private::NativeProcessProtocol::savecore, lldb_private::NativeProcessProtocol::siginfo_read, and lldb_private::NativeProcessProtocol::vfork.
|
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::Manager.
Definition at line 70 of file NativeProcessFreeBSD.cpp.
References CanTrace(), lldb_private::WaitStatus::Decode(), error(), lldb_private::Status::Fail(), lldb_private::GetLog(), lldb_private::HostProcess::GetProcessId(), lldb_private::Host::GetProcessInfo(), lldb_private::ProcessLaunchInfo::GetPTY(), lldb_private::ProcessLauncherPosixFork::LaunchProcess(), LLDB_LOG, lldb_private::NativeProcessProtocol::Manager::m_mainloop, lldb_private::Process, lldb_private::PseudoTerminal::ReleasePrimaryFileDescriptor(), lldb_private::process_freebsd::NativeThreadFreeBSD::SetStoppedBySignal(), SIGSTOP, lldb_private::Status::ToError(), and UNUSED_IF_ASSERT_DISABLED.