MCPcopy Create free account
hub / github.com/bloomberg/pystack / getNonInlineSymbolName

Method getNonInlineSymbolName

src/pystack/_pystack/unwinder.cpp:275–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275const char*
276AbstractUnwinder::getNonInlineSymbolName(Dwfl_Module* mod, Dwarf_Addr pc) const
277{
278 auto item = d_symbol_by_pc_cache.find(pc);
279 if (item != d_symbol_by_pc_cache.end()) {
280 return item->second;
281 }
282
283 GElf_Sym sym;
284 GElf_Off offset;
285 const char* raw_symname = dwfl_module_addrinfo(mod, pc, &offset, &sym, nullptr, nullptr, nullptr);
286 d_symbol_by_pc_cache.emplace(pc, raw_symname);
287 return raw_symname;
288}
289
290std::vector<NativeFrame>
291AbstractUnwinder::gatherFrames(const std::vector<Frame>& frames) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected