[][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.

Methods

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 Copy for FuncRecord[src]

impl Default for FuncRecord[src]

impl Clone for FuncRecord[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FuncRecord[src]

Auto Trait Implementations

impl Send for FuncRecord

impl Sync for FuncRecord

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T