pub unsafe trait DebugInfoProvider: Clone {
    type Reader: Reader<Offset = usize>;

    fn info_for(
        &self,
        fn_addr: u64
    ) -> Result<DebugInfo<'_, Self::Reader>, Error>; }
Expand description

A source of debug info that can be trusted to correspond to the current executable.

Safety

Implementers of this trait must provide accurate debug info for this program.

Required Associated Types§

The type of the DWARF reader.

Required Methods§

Produces debug info for a given function.

Implementors§