All files / binary101/analyzers/elf cfi-state.ts

100% Statements 6/6
100% Branches 6/6
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 71x 1x 1x 1x 1x 21x  
import { evaluateDwarfCfi } from "../dwarf/cfi-state.js";
import type { ElfUnwindCie, ElfUnwindFde } from "./unwind-types.js";
import type { ElfCfiEvaluation } from "./cfi-state-types.js";
 
export const evaluateElfCfi = (cie: ElfUnwindCie, fde: ElfUnwindFde): ElfCfiEvaluation =>
  evaluateDwarfCfi(cie, { ...fde, start: fde.start && !fde.start.indirect ? fde.start.address : null });