Struct gimli::EhFrame
[−]
[src]
pub struct EhFrame<R: Reader>(_);
EhFrame contains the frame unwinding information needed during exception
handling found in the .eh_frame section.
Most interesting methods are defined in the
UnwindSection trait.
See
DebugFrame
for some discussion on the differences between .debug_frame and
.eh_frame.
Methods
impl<'input, Endian> EhFrame<EndianBuf<'input, Endian>> where
Endian: Endianity, [src]
Endian: Endianity,
fn new(section: &'input [u8], endian: Endian) -> Self
Construct a new EhFrame instance from the data in the
.debug_frame section.
It is the caller's responsibility to read the 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::{EhFrame, EndianBuf, NativeEndian}; // Use with `.debug_frame` let debug_frame = EhFrame::new(read_debug_frame_section_somehow(), NativeEndian);
Trait Implementations
impl<R: Clone + Reader> Clone for EhFrame<R>[src]
fn clone(&self) -> EhFrame<R>
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
impl<R: Copy + Reader> Copy for EhFrame<R>[src]
impl<R: Debug + Reader> Debug for EhFrame<R>[src]
impl<R: PartialEq + Reader> PartialEq for EhFrame<R>[src]
fn eq(&self, __arg_0: &EhFrame<R>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &EhFrame<R>) -> bool
This method tests for !=.
impl<R: Eq + Reader> Eq for EhFrame<R>[src]
impl<R: Reader> Section<R> for EhFrame<R>[src]
fn section_name() -> &'static str
Returns the ELF section name for this type.
impl<R: Reader> From<R> for EhFrame<R>[src]
fn from(section: R) -> Self
Performs the conversion.
impl<R: Reader> UnwindSection<R> for EhFrame<R>[src]
type Offset = EhFrameOffset<R::Offset>
The offset type associated with this CFI section. Either DebugFrameOffset or EhFrameOffset. Read more
fn entries<'bases>(
&self,
bases: &'bases BaseAddresses
) -> CfiEntriesIter<'bases, Self, R>
&self,
bases: &'bases BaseAddresses
) -> CfiEntriesIter<'bases, Self, R>
Iterate over the CommonInformationEntrys and FrameDescriptionEntrys in this .debug_frame section. Read more
fn cie_from_offset<'bases>(
&self,
bases: &'bases BaseAddresses,
offset: Self::Offset
) -> Result<CommonInformationEntry<Self, R, R::Offset>>
&self,
bases: &'bases BaseAddresses,
offset: Self::Offset
) -> Result<CommonInformationEntry<Self, R, R::Offset>>
Parse the CommonInformationEntry at the given offset.
fn unwind_info_for_address<'bases>(
&self,
bases: &'bases BaseAddresses,
ctx: UninitializedUnwindContext<Self, R>,
address: u64
) -> Result<(UnwindTableRow<R>, UninitializedUnwindContext<Self, R>)>
&self,
bases: &'bases BaseAddresses,
ctx: UninitializedUnwindContext<Self, R>,
address: u64
) -> Result<(UnwindTableRow<R>, UninitializedUnwindContext<Self, R>)>
Find the frame unwind information for the given address. Read more