#include <RawSection.h>
Inheritance diagram for RawSection:
Public Member Functions | |
RawSection (SectHeader *h, XCoffFile *xcoff) | |
SECTRAW_MACROS_BASIS ("For the get_X field macros check the defines directory") | |
uint32_t | read (BinaryInputFile *b) |
void | print () |
uint64_t | readBytes (AddressIterator *ait) |
Instruction | readInstruction (AddressIterator *ait) |
bool | inRange (uint64_t addr) |
void | setSymbolTable (SymbolTable *st) |
SymbolTable * | getSymbolTable () |
virtual void | findFunctions () |
virtual void | generateCFGs () |
virtual void | findMemoryFloatOps () |
virtual void | displaySymbols (Symbol **symbols, uint32_t symbolCount) |
virtual char * | getContentVisually (Symbol **symbols, uint32_t symbolCount, uint64_t content) |
virtual AddressIterator | getAddressIterator () |
uint16_t | getIndex () |
SectHeader * | getSectHeader () |
XCoffFile * | getXCoffFile () |
virtual uint32_t | getNumberOfFunctions () |
virtual uint32_t | getNumberOfBlocks () |
virtual uint32_t | getNumberOfMemoryOps () |
virtual uint32_t | getNumberOfFloatPOps () |
virtual Function * | getFunction (uint32_t idx) |
virtual uint32_t | getAllBlocks (BasicBlock **arr) |
char * | getRawDataPtr () |
const char * | briefName () |
uint32_t | instrument (char *buffer, XCoffFileGen *xCoffGen, BaseGen *gen) |
uint32_t | getInstrumentationSize (XCoffFileGen *xCoffGen) |
virtual void | buildLineInfoFinder () |
virtual LineInfoFinder * | getLineInfoFinder () |
virtual void | buildLoops () |
Static Public Member Functions | |
RawSection * | newRawSection (SectHeader *h, XCoffFile *xcoff) |
Protected Member Functions | |
~RawSection () | |
Protected Attributes | |
SectHeader * | header |
char * | rawDataPtr |
SymbolTable * | xCoffSymbolTable |
HashCode | hashCode |
XCoffFile * | xCoffFile |
|
Definition at line 31 of file RawSection.h. |
|
Definition at line 31 of file RawSection.C. References ASSERT, SectHeader::getIndex(), SectHeader::getRawDataPtr(), SectHeader::getRawDataSize(), hashCode, header, HashCode::isSection(), rawDataPtr, and XCoffClassTypes_sect_rawdata. Referenced by newRawSection(). |
|
Reimplemented from Base. Reimplemented in DebugSection, TypeCommSection, ExceptionSection, LoaderSection, TextSection, DataSection, and BSSSection. Definition at line 71 of file RawSection.h. |
|
Reimplemented in TextSection. Definition at line 76 of file RawSection.h. Referenced by XCoffFile::setLineInfoFinder(). |
|
Reimplemented in TextSection. Definition at line 79 of file RawSection.h. Referenced by XCoffFile::findLoops(). |
|
Reimplemented in BSSSection. Definition at line 501 of file RawSection.C. References ASSERT, DemangleWrapper::demangle_combined(), getAddressIterator(), getContentVisually(), SectHeader::getIndex(), SymbolTable::getSymbolLength(), SymbolTable::getSymbolName(), AddressIterator::hasMore(), header, AddressIterator::isInvalid(), SectHeader::print(), PRINT_INFOR, readBytes(), and xCoffSymbolTable. Referenced by XCoffFile::displaySymbols(). |
|
Reimplemented in TextSection. Definition at line 650 of file RawSection.C. References SectHeader::getIndex(), header, and PRINT_DEBUG. Referenced by XCoffFile::findFunctions(). |
|
Reimplemented in TextSection. Definition at line 657 of file RawSection.C. References SectHeader::getIndex(), header, and PRINT_DEBUG. Referenced by XCoffFile::findMemoryFloatOps(). |
|
Reimplemented in TextSection. Definition at line 653 of file RawSection.C. References SectHeader::getIndex(), header, and PRINT_DEBUG. Referenced by XCoffFile::generateCFGs(). |
|
Reimplemented in TextSection, and DataSection. Definition at line 486 of file RawSection.C. References ASSERT, and AddressIterator::invalidIterator(). Referenced by displaySymbols(), Function::parseJumpTable(), and XCoffFile::readTOC(). |
|
Reimplemented in TextSection. Definition at line 67 of file RawSection.h. Referenced by XCoffFile::getAllBlocks(). |
|
Reimplemented in TextSection, and DataSection. Definition at line 448 of file RawSection.C. Referenced by displaySymbols(). |
|
Reimplemented in TextSection. Definition at line 66 of file RawSection.h. Referenced by XCoffFile::findBasicBlock(). |
|
Definition at line 57 of file RawSection.h. References SectHeader::getIndex(), and header. Referenced by Function::Function(), MemoryOperation::MemoryOperation(), and BasicBlock::setIndex(). |
|
Reimplemented from Base. Reimplemented in LoaderSection, TextSection, and DataSection. Definition at line 349 of file ReWriting.C. References getRawDataPtr(). |
|
Reimplemented in TextSection. Definition at line 77 of file RawSection.h. |
|
Reimplemented in TextSection. Definition at line 63 of file RawSection.h. Referenced by XCoffFile::parse(). |
|
Reimplemented in TextSection. Definition at line 65 of file RawSection.h. Referenced by XCoffFile::parse(). |
|
Reimplemented in TextSection. Definition at line 62 of file RawSection.h. Referenced by XCoffFile::parse(). |
|
Reimplemented in TextSection. Definition at line 64 of file RawSection.h. Referenced by XCoffFile::parse(). |
|
Definition at line 69 of file RawSection.h. References rawDataPtr. Referenced by getInstrumentationSize(), DataSection::instrument(), TextSection::instrument(), and instrument(). |
|
|
Definition at line 47 of file RawSection.h. References xCoffSymbolTable. Referenced by Function::Function(), Function::getAllSymbolNames(), Function::isAnySymbolA(), and Function::print(). |
|
Definition at line 60 of file RawSection.h. References xCoffFile. Referenced by ExceptionSection::ExceptionSection(), DataSection::getAddressIterator(), LoaderSection::getInstrumentationSize(), Function::getXCoffFile(), LoaderSection::instrument(), ExceptionSection::instrument(), DebugSection::print(), LoaderSection::read(), and ExceptionSection::read(). |
|
|
Reimplemented from Base. Reimplemented in ExceptionSection, LoaderSection, TextSection, and DataSection. Definition at line 354 of file ReWriting.C. References getRawDataPtr(), and PRINT_DEBUG. |
|
Definition at line 58 of file RawSection.C. References ASSERT, DEBUG, and RawSection(). Referenced by XCoffFile::readRawSectionData(). |
|
Reimplemented from Base. Reimplemented in DebugSection, TypeCommSection, ExceptionSection, LoaderSection, and TextSection. Definition at line 49 of file RawSection.C. References SectHeader::getIndex(), SectHeader::getTypeName(), header, PRINT_INFOR, and rawDataPtr. Referenced by XCoffFile::print(), TextSection::print(), LoaderSection::print(), ExceptionSection::print(), TypeCommSection::print(), and DebugSection::print(). |
|
Reimplemented from Base. Reimplemented in ExceptionSection, and LoaderSection. Definition at line 40 of file RawSection.C. References BinaryInputFile::currentOffset(), rawDataPtr, Base::setFileOffset(), and BinaryInputFile::setInPointer(). Referenced by XCoffFile::readRawSectionData(). |
|
Definition at line 424 of file RawSection.C. References ASSERT, header, inRange(), and rawDataPtr. Referenced by displaySymbols(), Function::parseJumpTable(), readInstruction(), and XCoffFile::readTOC(). |
|
|
|
|
Definition at line 46 of file RawSection.h. References xCoffSymbolTable. Referenced by XCoffFile::parse(). |
|
Definition at line 28 of file RawSection.h. Referenced by RawSection(). |
|
Reimplemented in LoaderSection. Definition at line 25 of file RawSection.h. Referenced by displaySymbols(), findFunctions(), findMemoryFloatOps(), generateCFGs(), getIndex(), getSectHeader(), inRange(), print(), RawSection(), and readBytes(). |
|
Definition at line 26 of file RawSection.h. Referenced by getRawDataPtr(), print(), RawSection(), read(), and readBytes(). |
|
Definition at line 29 of file RawSection.h. Referenced by getXCoffFile(). |
|
Definition at line 27 of file RawSection.h. Referenced by displaySymbols(), getSymbolTable(), and setSymbolTable(). |