| 532 | } |
| 533 | |
| 534 | bool 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 | |
| 545 | bool ElfParser::loadSymbolsFromDebuginfodCache(const char* build_id, const int build_id_len) { |
| 546 | const char* debuginfod_cache = getDebuginfodCache(); |
nothing calls this directly
no outgoing calls
no test coverage detected