Main Page   Compound List   File List   Compound Members  

SymbolTable Class Reference

A container class for "on-demand" symbol address fetching. More...

#include <SymbolTable.hpp>

List of all members.

Public Methods

 SymbolTable ()
 Construct a SymbolTable object and load configuration from default files.

 SymbolTable (string res, string sys)
 Construct a SymbolTable object and load configuration from defined files. More...

 SymbolTable (rwKernel *)
 Construct a SymbolTable object and use the referenced rwKernel object in all member attributes and methods.

 ~SymbolTable ()
 Foo.

void setSaveFile (string)
 Define the file written to on saveCache (). More...

unsigned int getSymbol (string)
 get the address of a known symbol. More...

bool findSymbol (string)
 Find a symbol. More...

void addSymbolToCache (string, unsigned int)
 add a symbol, address pair to the cache.

void clearCache ()
 flush the address cache.

bool saveCache ()
 save the cache to a file (human readable, System.map style).


Public Attributes

zzSymList symList
 List of name, address pairs.


Detailed Description

A container class for "on-demand" symbol address fetching.


Constructor & Destructor Documentation

SymbolTable::SymbolTable string res,
string sys
 

Construct a SymbolTable object and load configuration from defined files.

Parameters:
res   file name of restore file.
sys   System.map file to load.


Member Function Documentation

bool SymbolTable::findSymbol string
 

Find a symbol.

This will try all available methods to find a symbol and cache the address, name pair (zero if search was not successfull).

Returns:
true on success.

unsigned int SymbolTable::getSymbol string
 

get the address of a known symbol.

Returns:
If the symbol is unknow zero is returned. (hey, would you call 0x00000000?). Else, the address of the symbol.

void SymbolTable::setSaveFile string
 

Define the file written to on saveCache ().

See also:
saveCache()


The documentation for this class was generated from the following file:
Generated at Tue Aug 14 18:04:51 2001 for Kermit by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001