DwarfCfiFindCie
Description
Find a CIE by its .eh_frame offset (used to link FDE -> CIE).
Success
Returns a pointer to the CIE at cie_offset, borrowed from self (valid until DwarfCfiDeinit).
Failure
Returns NULL when no CIE sits at that offset.
Usage example (Cross-references)
Usage examples (Cross-references)
out->cie_offset = cie_offset;
const DwarfCie *cie = DwarfCfiFindCie(cfi, cie_offset);
if (!cie)
return false; }
const DwarfCie *DwarfCfiFindCie(const DwarfCfi *self, u64 cie_offset) {
if (!self)
return NULL; return false;
}
const DwarfCie *cie = DwarfCfiFindCie(cfi, fde->cie_offset);
if (!cie)
return false; DwarfCfi cfi;
if (DwarfCfiBuildFromElf(&cfi, &elf, base)) {
const DwarfCie *cie = DwarfCfiFindCie(&cfi, 0);
ok = cie != NULL && cie->version == 1 && cie->has_augmentation == 1 && cie->offset == 0 &&
cie->fde_pointer_encoding == 0x03 && cfi.eh_frame_addr == EH_SECTION_VADDR;
Last updated on