UnivesalDisassembler(2003)
|
Gateway to use loading symbols from plugin. (Singleton, Proxy between Decoder and Plugins) More...
#include <symtable.h>
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. | |
BinFileData & | bfdata |
Gateway to use loading symbols from plugin. (Singleton, Proxy between Decoder and Plugins)
Definition at line 22 of file symtable.h.
Symbols::Symbols | ( | BinFileData & | bfd | ) | [inline] |
Definition at line 25 of file symtable.h.
bool Symbols::checkaddress | ( | const Address | addr | ) |
If address is not defined create new label.
Definition at line 66 of file symtable.cc.
References symbols, and uint2str().
Referenced by BuiltinTables::BAd::Decode(), BuiltinTables::BAw::Decode(), BuiltinTables::BJd::Decode(), BuiltinTables::BJw::Decode(), BuiltinTables::BJb::Decode(), BuiltinTables::SBId::Decode(), BuiltinTables::BId::Decode(), BuiltinTables::Ad::Decode(), BuiltinTables::Aw::Decode(), BuiltinTables::Jd::Decode(), BuiltinTables::Jw::Decode(), BuiltinTables::Jb::Decode(), BuiltinTables::SId::Decode(), and BuiltinTables::Id::Decode().
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 | ) |
BinFileData& AbstractSymbols::bfdata [inherited] |
Definition at line 98 of file shared.h.
Referenced by load_symbols().
MSymbols AbstractSymbols::symbols [inherited] |
Symbols map. Address gets string.
Definition at line 97 of file shared.h.
Referenced by load_symbols(), and print_symbols().