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]
fn new(debug_frame_section: &'input [u8]) -> DebugFrame<'input, Endian>
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());
fn entries(&self) -> CfiEntriesIter<'input, Endian>
Iterate over the CommonInformationEntrys and FrameDescriptionEntrys
in this .debug_frame section.
Can be used with
FallibleIterator.
fn cie_from_offset(&self, offset: DebugFrameOffset) -> Result<CommonInformationEntry<'input, Endian>>
Parse the CommonInformationEntry at the given offset.
Trait Implementations
impl<'input, Endian: Debug> Debug for DebugFrame<'input, Endian> where Endian: Endianity[src]
impl<'input, Endian: Clone> Clone for DebugFrame<'input, Endian> where Endian: Endianity[src]
fn clone(&self) -> DebugFrame<'input, Endian>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more