LLDB mainline
lldb_private::ProcessDebugger Class Reference

#include <ProcessDebugger.h>

Inheritance diagram for lldb_private::ProcessDebugger:
[legend]

Public Member Functions

virtual ~ProcessDebugger ()
virtual void OnExitProcess (uint32_t exit_code)
virtual void OnDebuggerConnected (lldb::addr_t image_base)
virtual ExceptionResult OnDebugException (bool first_chance, const ExceptionRecord &record)
virtual void OnCreateThread (const HostThread &thread)
virtual void OnExitThread (lldb::tid_t thread_id, uint32_t exit_code)
virtual void OnLoadDll (const ModuleSpec &module_spec, lldb::addr_t module_addr)
virtual void OnUnloadDll (lldb::addr_t module_addr)
virtual void OnDebugString (const std::string &string)
virtual void OnDebuggerError (const Status &error, uint32_t type)

Protected Member Functions

Status DetachProcess ()
Status LaunchProcess (ProcessLaunchInfo &launch_info, DebugDelegateSP delegate)
Status AttachProcess (lldb::pid_t pid, const ProcessAttachInfo &attach_info, DebugDelegateSP delegate)
Status DestroyProcess (lldb::StateType process_state)
Status HaltProcess (bool &caused_stop)
Status GetMemoryRegionInfo (lldb::addr_t load_addr, MemoryRegionInfo &range_info)
Status ReadMemory (lldb::addr_t addr, void *buf, size_t size, size_t &bytes_read)
Status WriteMemory (lldb::addr_t addr, const void *buf, size_t size, size_t &bytes_written)
Status AllocateMemory (size_t size, uint32_t permissions, lldb::addr_t &addr)
Status DeallocateMemory (lldb::addr_t addr)
lldb::pid_t GetDebuggedProcessId () const
Status WaitForDebuggerConnection (DebuggerThreadSP debugger, HostProcess &process)

Protected Attributes

llvm::sys::Mutex m_mutex
std::unique_ptr< ProcessWindowsDatam_session_data

Detailed Description

Definition at line 48 of file ProcessDebugger.h.

Constructor & Destructor Documentation

◆ ~ProcessDebugger()

lldb_private::ProcessDebugger::~ProcessDebugger ( )
virtual

Definition at line 66 of file ProcessDebugger.cpp.

Member Function Documentation

◆ AllocateMemory()

◆ AttachProcess()

◆ DeallocateMemory()

◆ DestroyProcess()

◆ DetachProcess()

Status lldb_private::ProcessDebugger::DetachProcess ( )
protected

◆ GetDebuggedProcessId()

◆ GetMemoryRegionInfo()

◆ HaltProcess()

Status lldb_private::ProcessDebugger::HaltProcess ( bool & caused_stop)
protected

◆ LaunchProcess()

◆ OnCreateThread()

void lldb_private::ProcessDebugger::OnCreateThread ( const HostThread & thread)
virtual

Reimplemented in lldb_private::NativeProcessWindows, and lldb_private::ProcessWindows.

Definition at line 530 of file ProcessDebugger.cpp.

◆ OnDebugException()

◆ OnDebuggerConnected()

void lldb_private::ProcessDebugger::OnDebuggerConnected ( lldb::addr_t image_base)
virtual

Reimplemented in lldb_private::NativeProcessWindows, and lldb_private::ProcessWindows.

Definition at line 492 of file ProcessDebugger.cpp.

◆ OnDebuggerError()

void lldb_private::ProcessDebugger::OnDebuggerError ( const Status & error,
uint32_t type )
virtual

◆ OnDebugString()

void lldb_private::ProcessDebugger::OnDebugString ( const std::string & string)
virtual

Reimplemented in lldb_private::ProcessWindows.

Definition at line 547 of file ProcessDebugger.cpp.

◆ OnExitProcess()

void lldb_private::ProcessDebugger::OnExitProcess ( uint32_t exit_code)
virtual

◆ OnExitThread()

void lldb_private::ProcessDebugger::OnExitThread ( lldb::tid_t thread_id,
uint32_t exit_code )
virtual

Reimplemented in lldb_private::NativeProcessWindows, and lldb_private::ProcessWindows.

Definition at line 534 of file ProcessDebugger.cpp.

◆ OnLoadDll()

void lldb_private::ProcessDebugger::OnLoadDll ( const ModuleSpec & module_spec,
lldb::addr_t module_addr )
virtual

Reimplemented in lldb_private::NativeProcessWindows, and lldb_private::ProcessWindows.

Definition at line 538 of file ProcessDebugger.cpp.

◆ OnUnloadDll()

void lldb_private::ProcessDebugger::OnUnloadDll ( lldb::addr_t module_addr)
virtual

Reimplemented in lldb_private::NativeProcessWindows, and lldb_private::ProcessWindows.

Definition at line 543 of file ProcessDebugger.cpp.

◆ ReadMemory()

◆ WaitForDebuggerConnection()

Status lldb_private::ProcessDebugger::WaitForDebuggerConnection ( DebuggerThreadSP debugger,
HostProcess & process )
protected

◆ WriteMemory()

Member Data Documentation

◆ m_mutex

◆ m_session_data


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