UnivesalDisassembler(2003)

Symbols Class Reference

Gateway to use loading symbols from plugin. (Singleton, Proxy between Decoder and Plugins) More...

#include <symtable.h>

Inheritance diagram for Symbols:
AbstractSymbols

List of all members.

Public Member Functions

 Symbols (BinFileData &bfd)
virtual void Load (const char *filename=NULL)
 Looks for appropriate plugin and loads all symbols from the file or from mapfile.
bool checkaddress (const Address addr)
 If address is not defined create new label.
bool defined (const Address addr)
 true if symbol for this address is just defined
string & operator[] (const Address addr)
 for mapping to symbols directly
Address findaddress (const string symbol, bool &defined)
 find address corresponding to symbol

Public Attributes

MSymbols symbols
 Symbols map. Address gets string.
BinFileDatabfdata

Detailed Description

Gateway to use loading symbols from plugin. (Singleton, Proxy between Decoder and Plugins)

Definition at line 22 of file symtable.h.


Constructor & Destructor Documentation

Symbols::Symbols ( BinFileData bfd) [inline]

Definition at line 25 of file symtable.h.


Member Function Documentation

bool Symbols::defined ( const Address  addr)

true if symbol for this address is just defined

Definition at line 77 of file symtable.cc.

References symbols.

Address Symbols::findaddress ( const string  symbol,
bool &  defined 
)

find address corresponding to symbol

Definition at line 90 of file symtable.cc.

References symbols.

Referenced by locate_address(), and main().

void Symbols::Load ( const char *  filename = NULL) [virtual]

Looks for appropriate plugin and loads all symbols from the file or from mapfile.

Looks for appropriate plugin and loads all symbols from file.

Definition at line 27 of file symtable.cc.

References Scanner::Token::int_value, Scanner::line(), PLUGIN_SYMTABLE, plugins, Scanner::Scan(), Scanner::Token::str_value, symbols, tk_equal, tk_number, tk_semicol, tk_text, and uint2str().

Referenced by main().

string & Symbols::operator[] ( const Address  addr)

for mapping to symbols directly

Definition at line 83 of file symtable.cc.

References symbols.


Member Data Documentation

Definition at line 98 of file shared.h.

Referenced by load_symbols().

Symbols map. Address gets string.

Definition at line 97 of file shared.h.

Referenced by load_symbols(), and print_symbols().


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