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

FunctionFinder Class Reference

#include <LineInfoFinder.h>

Inheritance diagram for FunctionFinder:

Base List of all members.

Public Member Functions

 FunctionFinder (SymbolTable *symTable, LineInfoTable *linTable, StringTable *strTable, uint32_t idx, struct idx_symndx *lineInfoFunctions, uint32_t numberOfLineInfoFunctions)
 ~FunctionFinder ()
FileFindersetParent (FileFinder **files, uint32_t numberOfFiles)
char * getName ()
bool isFromIncludeFile ()
uint32_t getBeginLineInfoIndex ()
uint32_t getEndLineInfoIndex ()
uint32_t getFirstLine ()
bool containsLineNumber (uint32_t lineno)
FileFindergetParentFile ()
uint64_t getAddressByLineNumber (uint32_t lineno)
uint64_t getAddressByLineNumber (uint32_t lineno, uint64_t addr)
void print ()

Protected Attributes

char * functionName
uint32_t beginLineInfoIndex
uint32_t endLineInfoIndex
uint32_t firstLine
bool fromIncludeFile
FileFinderparentFile
StringTablestringTable
LineInfoTablelineInfoTable
SymbolTablesymbolTable

Constructor & Destructor Documentation

FunctionFinder::FunctionFinder SymbolTable symTable,
LineInfoTable linTable,
StringTable strTable,
uint32_t  idx,
struct idx_symndx lineInfoFunctions,
uint32_t  numberOfLineInfoFunctions
 

Definition at line 858 of file LineInfoFinder.C.

References beginLineInfoIndex, C_EXT, C_FCN, C_FCN_BEGIN_NAME, C_FCN_END_NAME, C_HIDEXT, C_WEAKEXT, endLineInfoIndex, firstLine, functionName, LineInfoTable::getNumberOfLineInfos(), SymbolTable::getNumberOfSymbols(), SymbolTable::getSymbol(), SymbolTable::getSymbolName(), idx_symndx::index, SymbolBase::isAuxilary(), lineInfoTable, stringTable, symbolTable, and idx_symndx::symndx.

FunctionFinder::~FunctionFinder  ) 
 

Definition at line 922 of file LineInfoFinder.C.

References functionName.


Member Function Documentation

bool FunctionFinder::containsLineNumber uint32_t  lineno  ) 
 

Definition at line 805 of file LineInfoFinder.C.

References beginLineInfoIndex, endLineInfoIndex, LineInfoTable::getLineInfo(), and lineInfoTable.

Referenced by LineInfoFinder::getAddressByFile(), LineInfoFinder::getAddressByFunction(), LineInfoFinder::isLineInFile(), and LineInfoFinder::isLineInFunction().

uint64_t FunctionFinder::getAddressByLineNumber uint32_t  lineno,
uint64_t  addr
 

Definition at line 833 of file LineInfoFinder.C.

References beginLineInfoIndex, endLineInfoIndex, LineInfoTable::getLineInfo(), and lineInfoTable.

uint64_t FunctionFinder::getAddressByLineNumber uint32_t  lineno  ) 
 

Definition at line 820 of file LineInfoFinder.C.

References beginLineInfoIndex, endLineInfoIndex, LineInfoTable::getLineInfo(), and lineInfoTable.

Referenced by LineInfoFinder::getAddressByFile(), and LineInfoFinder::getAddressByFunction().

uint32_t FunctionFinder::getBeginLineInfoIndex  )  [inline]
 

Definition at line 57 of file LineInfoFinder.h.

References beginLineInfoIndex.

Referenced by LineInfoFinder::functionContainsAddress().

uint32_t FunctionFinder::getEndLineInfoIndex  )  [inline]
 

Definition at line 58 of file LineInfoFinder.h.

References endLineInfoIndex.

uint32_t FunctionFinder::getFirstLine  )  [inline]
 

Definition at line 59 of file LineInfoFinder.h.

References firstLine.

Referenced by LineInfoFinder::getAddressByFile(), LineInfoFinder::getLineNumberInFile(), and LineInfoFinder::isLineInFile().

char* FunctionFinder::getName  )  [inline]
 

Definition at line 55 of file LineInfoFinder.h.

References functionName.

Referenced by LineInfoFinder::testLineInfoFinder().

FileFinder* FunctionFinder::getParentFile  )  [inline]
 

Definition at line 61 of file LineInfoFinder.h.

References parentFile.

Referenced by LineInfoFinder::getFileNameOfFunction(), and LineInfoFinder::LineInfoFinder().

bool FunctionFinder::isFromIncludeFile  )  [inline]
 

Definition at line 56 of file LineInfoFinder.h.

References fromIncludeFile.

void FunctionFinder::print  )  [virtual]
 

Reimplemented from Base.

Definition at line 849 of file LineInfoFinder.C.

References beginLineInfoIndex, endLineInfoIndex, firstLine, fromIncludeFile, functionName, FileFinder::getName(), parentFile, and PRINT_INFOR.

Referenced by LineInfoFinder::printFunctions().

FileFinder * FunctionFinder::setParent FileFinder **  files,
uint32_t  numberOfFiles
 

Definition at line 772 of file LineInfoFinder.C.

References beginLineInfoIndex, LineInfoTable::getLineInfo(), FileFinder::getSymbolIndex(), FileFinder::isIncludeFile(), FileFinder::isSourceFile(), lineInfoTable, and parentFile.

Referenced by LineInfoFinder::LineInfoFinder().


Member Data Documentation

uint32_t FunctionFinder::beginLineInfoIndex [protected]
 

Definition at line 40 of file LineInfoFinder.h.

Referenced by containsLineNumber(), FunctionFinder(), getAddressByLineNumber(), getBeginLineInfoIndex(), print(), and setParent().

uint32_t FunctionFinder::endLineInfoIndex [protected]
 

Definition at line 41 of file LineInfoFinder.h.

Referenced by containsLineNumber(), FunctionFinder(), getAddressByLineNumber(), getEndLineInfoIndex(), and print().

uint32_t FunctionFinder::firstLine [protected]
 

Definition at line 42 of file LineInfoFinder.h.

Referenced by FunctionFinder(), getFirstLine(), and print().

bool FunctionFinder::fromIncludeFile [protected]
 

Definition at line 43 of file LineInfoFinder.h.

Referenced by isFromIncludeFile(), and print().

char* FunctionFinder::functionName [protected]
 

Definition at line 39 of file LineInfoFinder.h.

Referenced by FunctionFinder(), getName(), print(), and ~FunctionFinder().

LineInfoTable* FunctionFinder::lineInfoTable [protected]
 

Definition at line 48 of file LineInfoFinder.h.

Referenced by containsLineNumber(), FunctionFinder(), getAddressByLineNumber(), and setParent().

FileFinder* FunctionFinder::parentFile [protected]
 

Definition at line 45 of file LineInfoFinder.h.

Referenced by getParentFile(), print(), and setParent().

StringTable* FunctionFinder::stringTable [protected]
 

Definition at line 47 of file LineInfoFinder.h.

Referenced by FunctionFinder().

SymbolTable* FunctionFinder::symbolTable [protected]
 

Definition at line 49 of file LineInfoFinder.h.

Referenced by FunctionFinder().


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