Go to the documentation of this file.
40 main(
int argc,
char *argv[])
42 if (argc != 2 && argc != 3)
43 panic(
"usage: %s <filename> <symbol>\n", argv[0]);
47 panic(
"file not found\n");
51 cprintf(
"%#x %s\n", symbol.address, symbol.name);
53 string symbol = argv[2];
56 if (symbol[0] ==
'0' && symbol[1] ==
'x') {
59 (it = obj->symtab().find(address)) != obj->symtab().end()) {
60 cprintf(
"address = %#x, symbol = %s\n", address, it->name);
62 cprintf(
"address = %#x was not found\n", address);
65 auto it = obj->symtab().find(symbol);
66 if (it != obj->symtab().end())
67 cprintf(
"symbol = %s address = %#x\n", symbol, it->address);
69 cprintf(
"symbol = %s was not found\n", symbol);
ObjectFile * createObjectFile(const std::string &fname, bool raw)
bool to_number(const std::string &value, VecPredRegContainer< NumBits, Packed > &p)
Helper functions used for serialization/de-serialization.
void cprintf(const char *format, const Args &...args)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
SymbolVector::const_iterator const_iterator
Overload hash function for BasicBlockRange type.
int main(int argc, char *argv[])
#define panic(...)
This implements a cprintf based panic() function.
Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17