[go: up one dir, main page]

Struct gimli::DebugFrame [] [src]

pub struct DebugFrame<'input, Endian> where Endian: Endianity {
    // some fields omitted
}

The DebugFrame struct contains the source location to instruction mapping found in the .debug_frame section.

Methods

impl<'input, Endian> DebugFrame<'input, Endian> where Endian: Endianity
[src]

Construct a new DebugFrame instance from the data in the .debug_frame section.

It is the caller's responsibility to read the .debug_frame section and present it as a &[u8] slice. That means using some ELF loader on Linux, a Mach-O loader on OSX, etc.

use gimli::{DebugFrame, LittleEndian};

let debug_frame = DebugFrame::<LittleEndian>::new(read_debug_frame_section_somehow());

Iterate over the CommonInformationEntrys and FrameDescriptionEntrys in this .debug_frame section.

Can be used with FallibleIterator.

Parse the CommonInformationEntry at the given offset.

Trait Implementations

impl<'input, Endian: Debug> Debug for DebugFrame<'input, Endian> where Endian: Endianity
[src]

Formats the value using the given formatter.

impl<'input, Endian: Clone> Clone for DebugFrame<'input, Endian> where Endian: Endianity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'input, Endian: Copy> Copy for DebugFrame<'input, Endian> where Endian: Endianity
[src]