Skip to main content

lookup_encoding

Function lookup_encoding 

Source
pub fn lookup_encoding(
    reader: &dyn MemoryReader,
    unwind_info: &SectionRef,
    pc: u64,
    image_base: u64,
) -> Option<(u32, u32)>
Expand description

Looks up the compact unwind encoding for a given PC.

Returns (encoding, func_base) where func_base is the image-relative offset of the function start (needed for FramelessIndirect entries).