Skip to main content

Module dwarf_cfi

Module dwarf_cfi 

Source
Expand description

DWARF Call Frame Information (.eh_frame / .debug_frame) parser and evaluator.

Parses CIE/FDE entries, executes DW_CFA_* state machine instructions, and applies the resulting register rules to produce an unwound register context.

Structs§

Cie
Common Information Entry.
CieAugmentation
Parsed CIE augmentation data.
Fde
Frame Description Entry.

Enums§

CfaRule
How to compute the CFA (Canonical Frame Address).
RegisterRule
How to restore a single register.

Constants§

DW_EH_PE_ABSPTR
DW_EH_PE_DATAREL
DW_EH_PE_INDIRECT
DW_EH_PE_OMIT
DW_EH_PE_PCREL
DW_EH_PE_SDATA2
DW_EH_PE_SDATA4
DW_EH_PE_SDATA8
DW_EH_PE_SLEB128
DW_EH_PE_UDATA2
DW_EH_PE_UDATA4
DW_EH_PE_UDATA8
DW_EH_PE_ULEB128

Functions§

apply_dwarf_unwind
Evaluates the CFA program (CIE initial instructions + FDE instructions) up to the target PC, then applies the resulting unwind row to restore registers.
find_fde
Finds the FDE containing the given PC in the .eh_frame section.