Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

SectHeader Class Reference

#include <SectHeader.h>

Inheritance diagram for SectHeader:

Base SectHeader32 SectHeader64 List of all members.

Public Member Functions

 SECTHEADER_MACROS_BASIS ("For the get_X field macros check the defines directory")
void print ()
void initFilePointers (BinaryInputFile *b)
void setOverFlowSection (SectHeader *sh)
SectHeadergetOverFlowSection ()
const char * getTypeName ()
char * getRawDataPtr ()
uint64_t getRawDataSize ()
RelocationTablereadRelocTable (BinaryInputFile *binaryInputFile, XCoffFile *xcoff)
LineInfoTablereadLineInfoTable (BinaryInputFile *binaryInputFile, XCoffFile *xcoff)
RelocationTablegetRelocationTable ()
LineInfoTablegetLineInfoTable ()
uint16_t getIndex ()
bool inRange (uint64_t address)
const char * briefName ()

Protected Member Functions

 SectHeader ()
 ~SectHeader ()
bool verify ()

Protected Attributes

char * rawDataPtr
char * relocationPtr
char * lineInfoPointer
uint32_t numOfRelocations
uint32_t numOfLineInfo
RelocationTablerelocationTable
LineInfoTablelineInfoTable
SectHeaderoverFlowSection
uint16_t index

Constructor & Destructor Documentation

SectHeader::SectHeader  )  [inline, protected]
 

Definition at line 26 of file SectHeader.h.

References index, lineInfoPointer, lineInfoTable, numOfLineInfo, numOfRelocations, overFlowSection, rawDataPtr, relocationPtr, relocationTable, and XCoffClassTypes_sect_header.

SectHeader::~SectHeader  )  [inline, protected]
 

Definition at line 30 of file SectHeader.h.


Member Function Documentation

const char* SectHeader::briefName  )  [inline, virtual]
 

Reimplemented from Base.

Definition at line 58 of file SectHeader.h.

uint16_t SectHeader::getIndex  )  [inline]
 

Definition at line 54 of file SectHeader.h.

References index.

Referenced by TextSection::buildLineInfoFinder(), TextSection::buildLoops(), BSSSection::displaySymbols(), RawSection::displaySymbols(), SymbolTable::filterSortBSSSymbols(), SymbolTable::filterSortFuncSymbols(), TextSection::findFunctions(), RawSection::findFunctions(), TextSection::findMemoryFloatOps(), RawSection::findMemoryFloatOps(), TextSection::generateCFGs(), RawSection::generateCFGs(), RawSection::getIndex(), SectHeader64::instrument(), SectHeader32::instrument(), RawSection::print(), and RawSection::RawSection().

LineInfoTable* SectHeader::getLineInfoTable  )  [inline]
 

Definition at line 52 of file SectHeader.h.

References lineInfoTable.

Referenced by XCoffFile::getLineInfoTable(), and XCoffFile::print().

SectHeader* SectHeader::getOverFlowSection  )  [inline]
 

Definition at line 41 of file SectHeader.h.

References overFlowSection.

char* SectHeader::getRawDataPtr  )  [inline]
 

Definition at line 45 of file SectHeader.h.

References rawDataPtr.

Referenced by RawSection::RawSection().

uint64_t SectHeader::getRawDataSize  )  [inline]
 

Definition at line 46 of file SectHeader.h.

References GET.

Referenced by RawSection::RawSection().

RelocationTable* SectHeader::getRelocationTable  )  [inline]
 

Definition at line 51 of file SectHeader.h.

References relocationTable.

Referenced by XCoffFile::getRelocationTable(), and XCoffFile::print().

const char * SectHeader::getTypeName  ) 
 

Definition at line 131 of file SectHeader.C.

References ASSERT, CASE_SECTION_TYPE, DEBUG, and GET.

Referenced by print(), and RawSection::print().

void SectHeader::initFilePointers BinaryInputFile b  ) 
 

Definition at line 8 of file SectHeader.C.

References ASSERT, BinaryInputFile::fileOffsetToPointer(), GET, IS_SECT_TYPE, lineInfoPointer, numOfLineInfo, numOfRelocations, rawDataPtr, and relocationPtr.

Referenced by SectHeader64::read(), and SectHeader32::read().

bool SectHeader::inRange uint64_t  address  ) 
 

Definition at line 30 of file SectHeader.C.

References GET, and IS_SECT_TYPE.

Referenced by SymbolTable::filterSortFuncSymbols(), and RawSection::inRange().

void SectHeader::print  )  [virtual]
 

Reimplemented from Base.

Definition at line 91 of file SectHeader.C.

References __MAX_STRING_SIZE, GET, getTypeName(), and PRINT_INFOR.

Referenced by XCoffFile::briefPrint(), BSSSection::displaySymbols(), RawSection::displaySymbols(), and XCoffFile::print().

LineInfoTable * SectHeader::readLineInfoTable BinaryInputFile binaryInputFile,
XCoffFile xcoff
 

Definition at line 46 of file SectHeader.C.

References lineInfoPointer, lineInfoTable, numOfLineInfo, and LineInfoTable::read().

RelocationTable * SectHeader::readRelocTable BinaryInputFile binaryInputFile,
XCoffFile xcoff
 

Definition at line 36 of file SectHeader.C.

References numOfRelocations, RelocationTable::read(), relocationPtr, and relocationTable.

Referenced by XCoffFile::readRelocLineInfoTable().

SectHeader::SECTHEADER_MACROS_BASIS "For the get_X field macros check the defines directory"   ) 
 

void SectHeader::setOverFlowSection SectHeader sh  ) 
 

Definition at line 82 of file SectHeader.C.

References ASSERT, IS_SECT_TYPE, numOfLineInfo, numOfRelocations, and overFlowSection.

bool SectHeader::verify  )  [protected]
 

Definition at line 56 of file SectHeader.C.

References ASSERT, GET, IS_SECT_TYPE, and LINE_RELOC_OVERFLOW.

Referenced by SectHeader64::read(), and SectHeader32::read().


Member Data Documentation

uint16_t SectHeader::index [protected]
 

Definition at line 23 of file SectHeader.h.

Referenced by getIndex(), and SectHeader().

char* SectHeader::lineInfoPointer [protected]
 

Definition at line 15 of file SectHeader.h.

Referenced by initFilePointers(), readLineInfoTable(), and SectHeader().

LineInfoTable* SectHeader::lineInfoTable [protected]
 

Definition at line 19 of file SectHeader.h.

Referenced by getLineInfoTable(), readLineInfoTable(), and SectHeader().

uint32_t SectHeader::numOfLineInfo [protected]
 

Definition at line 17 of file SectHeader.h.

Referenced by initFilePointers(), readLineInfoTable(), SectHeader(), and setOverFlowSection().

uint32_t SectHeader::numOfRelocations [protected]
 

Definition at line 16 of file SectHeader.h.

Referenced by initFilePointers(), readRelocTable(), SectHeader(), and setOverFlowSection().

SectHeader* SectHeader::overFlowSection [protected]
 

Definition at line 21 of file SectHeader.h.

Referenced by getOverFlowSection(), SectHeader(), and setOverFlowSection().

char* SectHeader::rawDataPtr [protected]
 

Definition at line 13 of file SectHeader.h.

Referenced by getRawDataPtr(), initFilePointers(), and SectHeader().

char* SectHeader::relocationPtr [protected]
 

Definition at line 14 of file SectHeader.h.

Referenced by initFilePointers(), readRelocTable(), and SectHeader().

RelocationTable* SectHeader::relocationTable [protected]
 

Definition at line 18 of file SectHeader.h.

Referenced by getRelocationTable(), readRelocTable(), and SectHeader().


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 11:08:41 2008 for PMaCInstrumentor by doxygen 1.3.5