LLDB mainline
|
#include <NativeProcessAIX.h>
Public Member Functions | |
Manager (MainLoop &mainloop) | |
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. | |
void | AddProcess (NativeProcessAIX &process) |
void | RemoveProcess (NativeProcessAIX &process) |
void | CollectThread (::pid_t tid) |
Public Member Functions inherited from lldb_private::NativeProcessProtocol::Manager | |
Manager (MainLoop &mainloop) | |
Manager (const Manager &)=delete | |
Manager & | operator= (const Manager &)=delete |
virtual | ~Manager () |
virtual Extension | GetSupportedExtensions () const |
Get the bitmask of extensions supported by this process plugin. |
Private Member Functions | |
void | SigchldHandler () |
Private Attributes | |
MainLoop::SignalHandleUP | m_sigchld_handle |
llvm::SmallPtrSet< NativeProcessAIX *, 2 > | m_processes |
Additional Inherited Members | |
Protected Attributes inherited from lldb_private::NativeProcessProtocol::Manager | |
MainLoop & | m_mainloop |
Definition at line 34 of file NativeProcessAIX.h.
NativeProcessAIX::Manager::Manager | ( | MainLoop & | mainloop | ) |
Definition at line 50 of file NativeProcessAIX.cpp.
References m_sigchld_handle, Manager(), lldb_private::NativeProcessProtocol::NativeProcessProtocol(), lldb_private::MainLoopPosix::RegisterSignal(), SigchldHandler(), and lldb_private::Status::Success().
Referenced by Manager().
|
inline |
Definition at line 45 of file NativeProcessAIX.h.
References m_processes, and lldb_private::process_aix::NativeProcessAIX::NativeProcessAIX().
Referenced by lldb_private::process_aix::NativeProcessAIX::NativeProcessAIX().
|
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 94 of file NativeProcessAIX.cpp.
References lldb_private::process_aix::NativeProcessAIX::Attach(), lldb_private::GetLog(), LLDB_LOG, lldb_private::process_aix::NativeProcessAIX::NativeProcessAIX(), and lldb_private::Process.
void NativeProcessAIX::Manager::CollectThread | ( | ::pid_t | tid | ) |
Definition at line 143 of file NativeProcessAIX.cpp.
|
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 61 of file NativeProcessAIX.cpp.
References lldb_private::WaitStatus::Decode(), lldb_private::Status::Fail(), lldb_private::GetLog(), lldb_private::HostProcess::GetProcessId(), lldb_private::ProcessLaunchInfo::GetPTY(), lldb_private::ProcessLauncherPosixFork::LaunchProcess(), LLDB_LOG, lldb_private::process_aix::NativeProcessAIX::NativeProcessAIX(), lldb_private::Process, lldb_private::PseudoTerminal::ReleasePrimaryFileDescriptor(), lldb_private::Status::ToError(), and UNUSED_IF_ASSERT_DISABLED.
|
inline |
Definition at line 47 of file NativeProcessAIX.h.
References m_processes, and lldb_private::process_aix::NativeProcessAIX::NativeProcessAIX().
|
private |
|
private |
Definition at line 57 of file NativeProcessAIX.h.
Referenced by AddProcess(), and RemoveProcess().
|
private |
Definition at line 55 of file NativeProcessAIX.h.
Referenced by Manager().