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

Function DIENameFromScope

src/pystack/_pystack/unwinder.cpp:64–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62// AbstractUnwinder utilities
63
64static std::optional<std::string>
65DIENameFromScope(Dwarf_Die* die)
66{
67 Dwarf_Attribute attr;
68 const char* name;
69 name = dwarf_formstring(
70 dwarf_attr_integrate(die, DW_AT_MIPS_linkage_name, &attr)
71 ?: dwarf_attr_integrate(die, DW_AT_linkage_name, &attr));
72 if (name == nullptr) {
73 name = dwarf_diename(die);
74 }
75 return name == nullptr ? std::nullopt : std::optional<std::string>(name);
76}
77
78static int
79frameCallback(Dwfl_Frame* state, void* arg)

Callers 1

gatherInlineFramesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected