Struct gimli::write::FrameTable [−][src]
pub struct FrameTable { /* fields omitted */ }A table of frame description entries.
Implementations
impl FrameTable[src]
impl FrameTable[src]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>, [src]
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 }.
impl FrameTable[src]
impl FrameTable[src]pub fn add_cie(&mut self, cie: CommonInformationEntry) -> CieId[src]
Add a CIE and return its id.
If the CIE already exists, then return the id of the existing CIE.
pub fn cie_count(&self) -> usize[src]
The number of CIEs.
pub fn add_fde(&mut self, cie: CieId, fde: FrameDescriptionEntry)[src]
pub fn fde_count(&self) -> usize[src]
The number of FDEs.
pub fn write_debug_frame<W: Writer>(&self, w: &mut DebugFrame<W>) -> Result<()>[src]
Write the frame table entries to the given .debug_frame section.
pub fn write_eh_frame<W: Writer>(&self, w: &mut EhFrame<W>) -> Result<()>[src]
Write the frame table entries to the given .eh_frame section.
Trait Implementations
impl Default for FrameTable[src]
impl Default for FrameTable[src]fn default() -> FrameTable[src]
Auto Trait Implementations
impl RefUnwindSafe for FrameTable
impl RefUnwindSafe for FrameTableimpl Send for FrameTable
impl Send for FrameTableimpl Sync for FrameTable
impl Sync for FrameTableimpl Unpin for FrameTable
impl Unpin for FrameTableimpl UnwindSafe for FrameTable
impl UnwindSafe for FrameTable