Function read_encoded_pointer

Source
unsafe fn read_encoded_pointer(
    reader: &mut DwarfReader,
    context: &EHContext<'_>,
    encoding: u8,
) -> Result<*const u8, ()>
Expand description

Reads a pointer from reader whose encoding is described by encoding.

encoding must be a DWARF Exception Header Encoding as described by the LSB spec.

ยงErrors

Returns Err if encoding

  • is not a valid DWARF Exception Header Encoding,
  • is DW_EH_PE_omit, or
  • combines DW_EH_PE_absptr or DW_EH_PE_aligned application part with an integer encoding (not DW_EH_PE_absptr) in the value format part.