Struct gimli::read::EhFrame [−][src]
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
.
Implementations
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: Clone + Reader> Clone for EhFrame<R>
[src]
fn clone(&self) -> EhFrame<R>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Copy + Reader> Copy for EhFrame<R>
[src]
impl<R: Debug + Reader> Debug for EhFrame<R>
[src]
impl<R: Eq + Reader> Eq for EhFrame<R>
[src]
impl<R: Reader> From<R> for EhFrame<R>
[src]
impl<R: PartialEq + Reader> PartialEq<EhFrame<R>> for EhFrame<R>
[src]
impl<R: Reader> Section<R> for EhFrame<R>
[src]
fn id() -> SectionId
[src]
fn reader(&self) -> &R
[src]
fn section_name() -> &'static str
[src]
fn dwo_section_name() -> Option<&'static str>
[src]
fn load<F, E>(f: F) -> Result<Self, E> where
F: FnOnce(SectionId) -> Result<R, E>,
[src]
F: FnOnce(SectionId) -> Result<R, E>,
fn lookup_offset_id(&self, id: ReaderOffsetId) -> Option<(SectionId, R::Offset)> where
R: Reader,
[src]
R: Reader,
impl<R: Reader> StructuralEq for EhFrame<R>
[src]
impl<R: Reader> StructuralPartialEq for EhFrame<R>
[src]
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>
fn cie_from_offset(
&self,
bases: &BaseAddresses,
offset: Self::Offset
) -> Result<CommonInformationEntry<R>>
[src]
&self,
bases: &BaseAddresses,
offset: Self::Offset
) -> Result<CommonInformationEntry<R>>
fn partial_fde_from_offset<'bases>(
&self,
bases: &'bases BaseAddresses,
offset: Self::Offset
) -> Result<PartialFrameDescriptionEntry<'bases, Self, R>>
[src]
&self,
bases: &'bases BaseAddresses,
offset: Self::Offset
) -> Result<PartialFrameDescriptionEntry<'bases, Self, R>>
fn fde_from_offset<F>(
&self,
bases: &BaseAddresses,
offset: Self::Offset,
get_cie: F
) -> Result<FrameDescriptionEntry<R>> where
F: FnMut(&Self, &BaseAddresses, Self::Offset) -> Result<CommonInformationEntry<R>>,
[src]
&self,
bases: &BaseAddresses,
offset: Self::Offset,
get_cie: F
) -> Result<FrameDescriptionEntry<R>> where
F: FnMut(&Self, &BaseAddresses, Self::Offset) -> Result<CommonInformationEntry<R>>,
fn fde_for_address<F>(
&self,
bases: &BaseAddresses,
address: u64,
get_cie: F
) -> Result<FrameDescriptionEntry<R>> where
F: FnMut(&Self, &BaseAddresses, Self::Offset) -> Result<CommonInformationEntry<R>>,
[src]
&self,
bases: &BaseAddresses,
address: u64,
get_cie: F
) -> Result<FrameDescriptionEntry<R>> where
F: FnMut(&Self, &BaseAddresses, Self::Offset) -> Result<CommonInformationEntry<R>>,
fn unwind_info_for_address<F>(
&self,
bases: &BaseAddresses,
ctx: &mut UninitializedUnwindContext<R>,
address: u64,
get_cie: F
) -> Result<UnwindTableRow<R>> where
F: FnMut(&Self, &BaseAddresses, Self::Offset) -> Result<CommonInformationEntry<R>>,
[src]
&self,
bases: &BaseAddresses,
ctx: &mut UninitializedUnwindContext<R>,
address: u64,
get_cie: F
) -> Result<UnwindTableRow<R>> where
F: FnMut(&Self, &BaseAddresses, Self::Offset) -> Result<CommonInformationEntry<R>>,
Auto Trait Implementations
impl<R> Send for EhFrame<R> where
R: Send,
R: Send,
impl<R> Sync for EhFrame<R> where
R: Sync,
R: Sync,
impl<R> Unpin for EhFrame<R> where
R: Unpin,
R: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,