class CfiModule

Defined at line 41 of file ../../src/lib/unwinder/cfi_module.h

Represents the Call Frame Information (CFI) from the .eh_frame and/or the .debug_frame section

of one ELF module.

This class doesn't cache the memory so if repeated lookups are required, it's recommended to use

a cached Memory implementation. Create via |FromLoadedElfModule|.

Public Methods

fit::result<Error, std::unique_ptr<CfiModule>> FromLoadedElfModule (const LoadedElfModule & loaded_elf_module)

Constructs, validates, and loads a new |CfiModule| from the given |loaded_elf_module|. Returns

any errors that occur in any of the above steps, and releases any allocated memory. The object

is guaranteed to be valid if this function returns fit::ok().

Defined at line 116 of file ../../src/lib/unwinder/cfi_module.cc

fit::result<Error, bool> Step (Memory * stack, const Registers & current, Registers & next)

Unwind one frame. The returned result will contain whether or not the next frame is a signal

frame in the case of success, otherwise the Error field will be populated with additional

information.

Defined at line 273 of file ../../src/lib/unwinder/cfi_module.cc

void AsyncStep (AsyncMemory * stack, const Registers & current, fit::callback<void (Error, Registers)> cb)

Defined at line 289 of file ../../src/lib/unwinder/cfi_module.cc