Struct gimli::write::FrameTable
source · pub struct FrameTable { /* private fields */ }
Expand description
A table of frame description entries.
Implementations§
source§impl 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 }
.
source§impl 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§
source§impl Debug for FrameTable
impl Debug for FrameTable
source§impl Default for FrameTable
impl Default for FrameTable
source§fn default() -> FrameTable
fn default() -> FrameTable
Returns the “default value” for a type. Read more