retdec
Private Attributes | List of all members
retdec::fileformat::ElfCoreInfo Class Reference

#include <elf_core.h>

Collaboration diagram for retdec::fileformat::ElfCoreInfo:
Collaboration graph
[legend]

Public Member Functions

Setters

auxiliary vector

void setPageSize (const std::uint64_t &size)
 
void addFileMapEntry (const FileMapEntry &entry)
 
void addAuxVectorEntry (const AuxVectorEntry &entry)
 
void addPrStatusInfo (const PrStatusInfo &info)
 
void setAppName (const std::string &name)
 
void setCmdLine (const std::string &line)
 
Getters
std::uint64_t getPageSize () const
 
const std::vector< FileMapEntry > & getFileMap () const
 
const std::vector< AuxVectorEntry > & getAuxVector () const
 
Helper methods
void dump (std::ostream &outStream)
 

Private Attributes

std::uint64_t pageSize
 used page size More...
 
std::vector< FileMapEntryfileMap
 parsed file map More...
 
std::vector< PrStatusInfoprstatusInfos
 prstatus structures More...
 
std::string appName
 original application name More...
 
std::string cmdLine
 command line More...
 
std::vector< AuxVectorEntryauxVector
 

Detailed Description

Class for representing information from core files

Member Function Documentation

◆ addAuxVectorEntry()

void retdec::fileformat::ElfCoreInfo::addAuxVectorEntry ( const AuxVectorEntry entry)

Add one aux. vector entry

Parameters
entryvector entry

◆ addFileMapEntry()

void retdec::fileformat::ElfCoreInfo::addFileMapEntry ( const FileMapEntry entry)

Add one entry to core file map

Parameters
entrymap entry

◆ addPrStatusInfo()

void retdec::fileformat::ElfCoreInfo::addPrStatusInfo ( const PrStatusInfo info)

Add one prstatus struct

Parameters
infoprstatus struct entry

◆ dump()

void retdec::fileformat::ElfCoreInfo::dump ( std::ostream &  outStream)

Dump CORE file info

Parameters
outStreamtarget output stream

◆ getAuxVector()

const std::vector< AuxVectorEntry > & retdec::fileformat::ElfCoreInfo::getAuxVector ( ) const

Get auxiliary vector

Returns
auxiliary vector

◆ getFileMap()

const std::vector< FileMapEntry > & retdec::fileformat::ElfCoreInfo::getFileMap ( ) const

Get core file map from NT_FILE note

Returns
core file map

◆ getPageSize()

uint64_t retdec::fileformat::ElfCoreInfo::getPageSize ( ) const

Get page size specified in NT_FILE note

Returns
page size

◆ setAppName()

void retdec::fileformat::ElfCoreInfo::setAppName ( const std::string &  name)

Set name off original application

Parameters
namename of application

◆ setCmdLine()

void retdec::fileformat::ElfCoreInfo::setCmdLine ( const std::string &  line)

Set original command line string

Parameters
linecommand line

◆ setPageSize()

void retdec::fileformat::ElfCoreInfo::setPageSize ( const std::uint64_t &  size)

Set page size specified in NT_FILE note

Parameters
sizepage size

Member Data Documentation

◆ appName

std::string retdec::fileformat::ElfCoreInfo::appName
private

original application name

◆ auxVector

std::vector<AuxVectorEntry> retdec::fileformat::ElfCoreInfo::auxVector
private

◆ cmdLine

std::string retdec::fileformat::ElfCoreInfo::cmdLine
private

command line

◆ fileMap

std::vector<FileMapEntry> retdec::fileformat::ElfCoreInfo::fileMap
private

parsed file map

◆ pageSize

std::uint64_t retdec::fileformat::ElfCoreInfo::pageSize
private

used page size

◆ prstatusInfos

std::vector<PrStatusInfo> retdec::fileformat::ElfCoreInfo::prstatusInfos
private

prstatus structures


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