dwarflang.decoder module

class dwarflang.decoder.Decoder(structs: Any)

Bases: elftools.dwarf.dwarf_expr.DWARFExprParser

A decoder for the DWARF binary expression format.

Expressions in the DWARF expression language are usually embedded in a binary format. This class uses pyelftools’ DWARFExprParser functionality to decode these into a meaningful Python datastructure.

Parameters

structs (Any) –

Return type

None

get_result() List[dwarflang.ast.DwarfInstr]
Return type

List[dwarflang.ast.DwarfInstr]

process_expr(expr: List[int]) None
Parameters

expr (List[int]) –

Return type

None