Struct gimli::write::FrameTable
source · [−]pub struct FrameTable { /* private fields */ }
Expand description
A table of frame description entries.
Implementations
sourceimpl FrameTable
impl FrameTable
sourcepub fn from<R, Section>(
frame: &Section,
convert_address: &dyn Fn(u64) -> Option<Address>
) -> ConvertResult<FrameTable> where
R: Reader<Offset = usize>,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<usize>,
pub fn from<R, Section>(
frame: &Section,
convert_address: &dyn Fn(u64) -> Option<Address>
) -> ConvertResult<FrameTable> where
R: Reader<Offset = usize>,
Section: UnwindSection<R>,
Section::Offset: UnwindOffset<usize>,
Create a frame table by reading the data in the given section.
convert_address
is a function to convert read addresses into the Address
type. For non-relocatable addresses, this function may simply return
Address::Constant(address)
. For relocatable addresses, it is the caller’s
responsibility to determine the symbol and addend corresponding to the address
and return Address::Symbol { symbol, addend }
.
sourceimpl FrameTable
impl FrameTable
sourcepub fn add_cie(&mut self, cie: CommonInformationEntry) -> CieId
pub fn add_cie(&mut self, cie: CommonInformationEntry) -> CieId
Add a CIE and return its id.
If the CIE already exists, then return the id of the existing CIE.
sourcepub fn add_fde(&mut self, cie: CieId, fde: FrameDescriptionEntry)
pub fn add_fde(&mut self, cie: CieId, fde: FrameDescriptionEntry)
sourcepub fn write_debug_frame<W: Writer>(&self, w: &mut DebugFrame<W>) -> Result<()>
pub fn write_debug_frame<W: Writer>(&self, w: &mut DebugFrame<W>) -> Result<()>
Write the frame table entries to the given .debug_frame
section.
Trait Implementations
sourceimpl Debug for FrameTable
impl Debug for FrameTable
sourceimpl Default for FrameTable
impl Default for FrameTable
sourcefn default() -> FrameTable
fn default() -> FrameTable
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FrameTable
impl Send for FrameTable
impl Sync for FrameTable
impl Unpin for FrameTable
impl UnwindSafe for FrameTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more