[−][src]Struct gimli::read::EhFrame
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<R: Reader> EhFrame<R>[src]
pub fn set_address_size(&mut self, address_size: u8)[src]
Set the size of a target address in bytes.
This defaults to the native word size.
impl<'input, Endian> EhFrame<EndianSlice<'input, Endian>> where
Endian: Endianity, [src]
Endian: Endianity,
pub fn new(section: &'input [u8], endian: Endian) -> Self[src]
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, EndianSlice, NativeEndian}; // Use with `.debug_frame` let debug_frame = EhFrame::new(read_debug_frame_section_somehow(), NativeEndian);
Trait Implementations
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>[src]
&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>>[src]
&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
) -> UnwindResult<(UnwindTableRow<R>, UninitializedUnwindContext<Self, R>), UninitializedUnwindContext<Self, R>>[src]
&self,
bases: &'bases BaseAddresses,
ctx: UninitializedUnwindContext<Self, R>,
address: u64
) -> UnwindResult<(UnwindTableRow<R>, UninitializedUnwindContext<Self, R>), UninitializedUnwindContext<Self, R>>
Find the frame unwind information for the given address. Read more
impl<R: Reader> Section<R> for EhFrame<R>[src]
fn section_name() -> &'static str[src]
impl<R: Copy + Reader> Copy for EhFrame<R>[src]
impl<R: Clone + Reader> Clone for EhFrame<R>[src]
fn clone(&self) -> EhFrame<R>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<R: PartialEq + Reader> PartialEq<EhFrame<R>> for EhFrame<R>[src]
impl<R: Eq + Reader> Eq for EhFrame<R>[src]
impl<R: Reader> From<R> for EhFrame<R>[src]
impl<R: Debug + Reader> Debug for EhFrame<R>[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,