Struct gimli::FrameDescriptionEntry
[−]
[src]
pub struct FrameDescriptionEntry<Section, R, Offset = usize> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>, { /* fields omitted */ }
A FrameDescriptionEntry
is a set of CFA instructions for an address range.
Methods
impl<Section, R, Offset> FrameDescriptionEntry<Section, R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
Signal Safe Methods
These methods are guaranteed not to allocate, acquire locks, or perform any other signal-unsafe operations.
fn offset(&self) -> Offset
[src]
Get the offset of this entry from the start of its containing section.
fn cie(&self) -> &CommonInformationEntry<Section, R, R::Offset>
[src]
Get a reference to this FDE's CIE.
fn entry_len(&self) -> Offset
[src]
A constant that gives the number of bytes of the header and instruction stream for this function, not including the length field itself (see Section 7.2.2). The size of the length field plus the value of length must be an integral multiple of the address size.
fn instructions(&self) -> CallFrameInstructionIter<R>
[src]
Iterate over this FDE's instructions.
Will not include the CIE's initial instructions, if you want those do
fde.cie().instructions()
first.
Can be used with
FallibleIterator
.
fn initial_address(&self) -> u64
[src]
The first address for which this entry has unwind information for.
fn len(&self) -> u64
[src]
The number of bytes of instructions that this entry has unwind information for.
fn contains(&self, address: u64) -> bool
[src]
Return true
if the given address is within this FDE, false
otherwise.
This is equivalent to entry.initial_address() <= address < entry.initial_address() + entry.len()
.
fn lsda(&self) -> Option<Pointer>
[src]
The address of this FDE's language-specific data area (LSDA), if it has any.
fn is_signal_trampoline(&self) -> bool
[src]
Return true if this FDE's function is a trampoline for a signal handler.
fn personality(&self) -> Option<Pointer>
[src]
Return the address of the FDE's function's personality routine handler. The personality routine does language-specific clean up when unwinding the stack frames with the intent to not run them again.
Trait Implementations
impl<Section: Clone, R: Clone, Offset: Clone> Clone for FrameDescriptionEntry<Section, R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
fn clone(&self) -> FrameDescriptionEntry<Section, R, Offset>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Section: Debug, R: Debug, Offset: Debug> Debug for FrameDescriptionEntry<Section, R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
impl<Section: PartialEq, R: PartialEq, Offset: PartialEq> PartialEq for FrameDescriptionEntry<Section, R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
fn eq(&self, __arg_0: &FrameDescriptionEntry<Section, R, Offset>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FrameDescriptionEntry<Section, R, Offset>) -> bool
[src]
This method tests for !=
.
impl<Section: Eq, R: Eq, Offset: Eq> Eq for FrameDescriptionEntry<Section, R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<R::Offset>,