[][src]Struct symbolic::symcache::format::FuncRecord

#[repr(C, packed)]pub struct FuncRecord {
    pub addr_low: u32,
    pub addr_high: u16,
    pub len: u16,
    pub line_records: Seg<LineRecord, u16>,
    pub comp_dir: Seg<u8, u8>,
    pub parent_offset: u16,
    pub symbol_id_low: u16,
    pub symbol_id_high: u8,
    pub lang: u8,
}

A function or public symbol.

Fields

addr_low: u32

Low bits of the address.

addr_high: u16

High bits of the address.

len: u16

The length of the function.

line_records: Seg<LineRecord, u16>

The line record of this function. If it fully overlaps with an inline the record could be ~0.

comp_dir: Seg<u8, u8>

The comp dir of the file record.

parent_offset: u16

The ID offset of the parent funciton. Will be ~0 if the function has no parent.

symbol_id_low: u16

The low bits of the ID of the symbol of this function or ~0 if no symbol.

symbol_id_high: u8

The high bits of the ID of the symbol of this function or ~0 if no symbol.

lang: u8

The language of the func record.

Implementations

impl FuncRecord[src]

pub fn symbol_id(&self) -> u32[src]

An index into the symbols segment for the function/symbol name.

pub fn addr_start(&self) -> u64[src]

The start instruction address address of the function.

pub fn addr_end(&self) -> u64[src]

The instruction address after the end of the function.

pub fn addr_in_range(&self, addr: u64) -> bool[src]

Checks whether the given address is covered by the function.

pub fn parent(&self, func_id: usize) -> Option<usize>[src]

Resolves the index of the parent function in the functions segment, if this is an inlined function.

Trait Implementations

impl Clone for FuncRecord[src]

impl Copy for FuncRecord[src]

impl Debug for FuncRecord[src]

impl Default for FuncRecord[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.