Struct gimli::EhFrame
[−]
[src]
pub struct EhFrame<'input, Endian>(_)
where
Endian: Endianity;
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<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
fn new(section: &'input [u8]) -> EhFrame<'input, Endian>
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, NativeEndian}; // Use with `.debug_frame` let debug_frame = EhFrame::<NativeEndian>::new(read_debug_frame_section_somehow());
Trait Implementations
impl<'input, Endian: Clone> Clone for EhFrame<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
fn clone(&self) -> EhFrame<'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
impl<'input, Endian: Copy> Copy for EhFrame<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
impl<'input, Endian: Debug> Debug for EhFrame<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
impl<'input, Endian: PartialEq> PartialEq for EhFrame<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
fn eq(&self, __arg_0: &EhFrame<'input, Endian>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EhFrame<'input, Endian>) -> bool
This method tests for !=
.
impl<'input, Endian: Eq> Eq for EhFrame<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
impl<'input, Endian> Section<'input> for EhFrame<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
fn section_name() -> &'static str
Returns the ELF section name for this type.
impl<'input, Endian> From<&'input [u8]> for EhFrame<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
impl<'input, Endian> UnwindSection<'input, Endian> for EhFrame<'input, Endian> where
Endian: Endianity,
[src]
Endian: Endianity,
type Offset = EhFrameOffset
The offset type associated with this CFI section. Either DebugFrameOffset
or EhFrameOffset
. Read more
fn offset(offset: usize) -> Self::Offset
Construct a Self::Offset
.
fn entries<'bases>(
&self,
bases: &'bases BaseAddresses
) -> CfiEntriesIter<'bases, 'input, Endian, Self>
&self,
bases: &'bases BaseAddresses
) -> CfiEntriesIter<'bases, 'input, Endian, Self>
Iterate over the CommonInformationEntry
s and FrameDescriptionEntry
s in this .debug_frame
section. Read more
fn cie_from_offset<'bases>(
&self,
bases: &'bases BaseAddresses,
offset: Self::Offset
) -> Result<CommonInformationEntry<'input, Endian, Self>>
&self,
bases: &'bases BaseAddresses,
offset: Self::Offset
) -> Result<CommonInformationEntry<'input, Endian, Self>>
Parse the CommonInformationEntry
at the given offset.
fn unwind_info_for_address<'bases>(
&self,
bases: &'bases BaseAddresses,
ctx: UninitializedUnwindContext<'input, Endian, Self>,
address: u64
) -> Result<(UnwindTableRow<'input, Endian>, UninitializedUnwindContext<'input, Endian, Self>)>
&self,
bases: &'bases BaseAddresses,
ctx: UninitializedUnwindContext<'input, Endian, Self>,
address: u64
) -> Result<(UnwindTableRow<'input, Endian>, UninitializedUnwindContext<'input, Endian, Self>)>
Find the frame unwind information for the given address. Read more