MCPcopy Create free account
hub / github.com/apple/foundationdb / LookupSymbol

Method LookupSymbol

contrib/stacktrace/stacktrace.amalgamation.cpp:2535–2545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2533}
2534
2535bool ElfMemImage::LookupSymbol(const char* name, const char* version, int type, SymbolInfo* info_out) const {
2536 for (const SymbolInfo& info : *this) {
2537 if (strcmp(info.name, name) == 0 && strcmp(info.version, version) == 0 && ElfType(info.symbol) == type) {
2538 if (info_out) {
2539 *info_out = info;
2540 }
2541 return true;
2542 }
2543 }
2544 return false;
2545}
2546
2547bool ElfMemImage::LookupSymbolByAddress(const void* address, SymbolInfo* info_out) const {
2548 for (const SymbolInfo& info : *this) {

Callers 1

InitMethod · 0.80

Calls 1

ElfTypeFunction · 0.85

Tested by

no test coverage detected