MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / loadSymbolsFromDebug

Method loadSymbolsFromDebug

src/symbols_linux.cpp:534–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534bool ElfParser::loadSymbolsFromDebug(const char* build_id, const int build_id_len) {
535 char path[PATH_MAX];
536 char* p = path + snprintf(path, sizeof(path), "/usr/lib/debug/.build-id/%02hhx/", build_id[0]);
537 for (int i = 1; i < build_id_len; i++) {
538 p += snprintf(p, 3, "%02hhx", build_id[i]);
539 }
540 strcpy(p, ".debug");
541
542 return parseFile(_cc, _base, path, false);
543}
544
545bool ElfParser::loadSymbolsFromDebuginfodCache(const char* build_id, const int build_id_len) {
546 const char* debuginfod_cache = getDebuginfodCache();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected