43 cout <<
"Usage: " << progname <<
" <symbol file> <symbol>" << endl;
49 main(
int argc,
char *argv[])
56 if (!symtab.
load(argv[1])) {
57 cout <<
"could not load symbol file: " << argv[1] << endl;
61 string symbol = argv[2];
66 cout <<
"could not find symbol: " << symbol << endl;
70 cout << symbol <<
" -> " <<
"0x" << hex << address << endl;
73 cout <<
"could not find address: " << address << endl;
77 cout <<
"0x" << hex << address <<
" -> " << symbol<< endl;
bool findAddress(const std::string &symbol, Addr &address) const
void usage(const char *progname)
bool load(const std::string &file)
int main(int argc, char *argv[])
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
bool findSymbol(Addr address, std::string &symbol) const
bool to_number(const std::string &value, Pixel &retval)