Planeshift
google_breakpad::LinuxDumper Class Referenceabstract

#include <linux_dumper.h>

Public Member Functions

PageAllocatorallocator ()
 
const wasteful_vector< elf_aux_val_t > & auxv ()
 
virtual bool BuildProcPath (char *path, pid_t pid, const char *node) const =0
 
virtual void CopyFromProcess (void *dest, pid_t child, const void *src, size_t length)=0
 
uintptr_t crash_address () const
 
int crash_signal () const
 
pid_t crash_thread () const
 
bool ElfFileIdentifierForMapping (const MappingInfo &mapping, bool member, unsigned int mapping_id, uint8_t identifier[sizeof(MDGUID)])
 
const MappingInfoFindMapping (const void *address) const
 
bool GetStackInfo (const void **stack, size_t *stack_len, uintptr_t stack_top)
 
virtual bool GetThreadInfoByIndex (size_t index, ThreadInfo *info)=0
 
virtual bool Init ()
 
virtual bool IsPostMortem () const =0
 
 LinuxDumper (pid_t pid)
 
const wasteful_vector< MappingInfo * > & mappings ()
 
void set_crash_address (uintptr_t crash_address)
 
void set_crash_signal (int crash_signal)
 
void set_crash_thread (pid_t crash_thread)
 
const wasteful_vector< pid_t > & threads ()
 
virtual bool ThreadsResume ()=0
 
virtual bool ThreadsSuspend ()=0
 
virtual ~LinuxDumper ()
 

Protected Member Functions

virtual bool EnumerateMappings ()
 
virtual bool EnumerateThreads ()=0
 
bool HandleDeletedFileInMapping (char *path) const
 
bool ReadAuxv ()
 

Protected Attributes

PageAllocator allocator_
 
wasteful_vector< elf_aux_val_t > auxv_
 
uintptr_t crash_address_
 
int crash_signal_
 
pid_t crash_thread_
 
wasteful_vector< MappingInfo * > mappings_
 
const pid_t pid_
 
wasteful_vector< pid_t > threads_
 

Detailed Description

Definition at line 103 of file linux_dumper.h.

Constructor & Destructor Documentation

google_breakpad::LinuxDumper::LinuxDumper ( pid_t  pid)
explicit
virtual google_breakpad::LinuxDumper::~LinuxDumper ( )
virtual

Member Function Documentation

PageAllocator* google_breakpad::LinuxDumper::allocator ( )
inline

Definition at line 135 of file linux_dumper.h.

const wasteful_vector<elf_aux_val_t>& google_breakpad::LinuxDumper::auxv ( )
inline

Definition at line 127 of file linux_dumper.h.

virtual bool google_breakpad::LinuxDumper::BuildProcPath ( char *  path,
pid_t  pid,
const char *  node 
) const
pure virtual
virtual void google_breakpad::LinuxDumper::CopyFromProcess ( void *  dest,
pid_t  child,
const void *  src,
size_t  length 
)
pure virtual
uintptr_t google_breakpad::LinuxDumper::crash_address ( ) const
inline

Definition at line 155 of file linux_dumper.h.

int google_breakpad::LinuxDumper::crash_signal ( ) const
inline

Definition at line 160 of file linux_dumper.h.

pid_t google_breakpad::LinuxDumper::crash_thread ( ) const
inline

Definition at line 163 of file linux_dumper.h.

bool google_breakpad::LinuxDumper::ElfFileIdentifierForMapping ( const MappingInfo mapping,
bool  member,
unsigned int  mapping_id,
uint8_t  identifier[sizeof(MDGUID)] 
)
virtual bool google_breakpad::LinuxDumper::EnumerateMappings ( )
protectedvirtual
virtual bool google_breakpad::LinuxDumper::EnumerateThreads ( )
protectedpure virtual
const MappingInfo* google_breakpad::LinuxDumper::FindMapping ( const void *  address) const
bool google_breakpad::LinuxDumper::GetStackInfo ( const void **  stack,
size_t *  stack_len,
uintptr_t  stack_top 
)
virtual bool google_breakpad::LinuxDumper::GetThreadInfoByIndex ( size_t  index,
ThreadInfo info 
)
pure virtual
bool google_breakpad::LinuxDumper::HandleDeletedFileInMapping ( char *  path) const
protected
virtual bool google_breakpad::LinuxDumper::Init ( )
virtual
virtual bool google_breakpad::LinuxDumper::IsPostMortem ( ) const
pure virtual
const wasteful_vector<MappingInfo*>& google_breakpad::LinuxDumper::mappings ( )
inline

Definition at line 125 of file linux_dumper.h.

bool google_breakpad::LinuxDumper::ReadAuxv ( )
protected
void google_breakpad::LinuxDumper::set_crash_address ( uintptr_t  crash_address)
inline

Definition at line 156 of file linux_dumper.h.

void google_breakpad::LinuxDumper::set_crash_signal ( int  crash_signal)
inline

Definition at line 161 of file linux_dumper.h.

void google_breakpad::LinuxDumper::set_crash_thread ( pid_t  crash_thread)
inline

Definition at line 164 of file linux_dumper.h.

const wasteful_vector<pid_t>& google_breakpad::LinuxDumper::threads ( )
inline

Definition at line 124 of file linux_dumper.h.

virtual bool google_breakpad::LinuxDumper::ThreadsResume ( )
pure virtual
virtual bool google_breakpad::LinuxDumper::ThreadsSuspend ( )
pure virtual

Member Data Documentation

PageAllocator google_breakpad::LinuxDumper::allocator_
mutableprotected

Definition at line 196 of file linux_dumper.h.

wasteful_vector<elf_aux_val_t> google_breakpad::LinuxDumper::auxv_
protected

Definition at line 205 of file linux_dumper.h.

uintptr_t google_breakpad::LinuxDumper::crash_address_
protected

Definition at line 188 of file linux_dumper.h.

int google_breakpad::LinuxDumper::crash_signal_
protected

Definition at line 191 of file linux_dumper.h.

pid_t google_breakpad::LinuxDumper::crash_thread_
protected

Definition at line 194 of file linux_dumper.h.

wasteful_vector<MappingInfo*> google_breakpad::LinuxDumper::mappings_
protected

Definition at line 202 of file linux_dumper.h.

const pid_t google_breakpad::LinuxDumper::pid_
protected

Definition at line 185 of file linux_dumper.h.

wasteful_vector<pid_t> google_breakpad::LinuxDumper::threads_
protected

Definition at line 199 of file linux_dumper.h.


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