[][src]Struct symbolic_symcache::SymCache

pub struct SymCache<'a> { /* fields omitted */ }

A platform independent symbolication cache.

Use SymCacheWriter writer to create SymCaches, including the conversion from object files.

Methods

impl<'a> SymCache<'a>[src]

pub fn parse(data: &'a [u8]) -> Result<Self, SymCacheError>[src]

Parses a SymCache from a binary buffer.

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

The version of the SymCache file format.

pub fn arch(&self) -> Arch[src]

The architecture of the symbol file.

pub fn debug_id(&self) -> DebugId[src]

The debuig identifier of the cache file.

pub fn has_line_info(&self) -> bool[src]

Returns true if line information is included.

pub fn has_file_info(&self) -> bool[src]

Returns true if file information is included.

Important traits for Functions<'a>
pub fn functions(&self) -> Functions<'a>[src]

Returns an iterator over all functions.

pub fn lookup(&self, addr: u64) -> Result<Lookup<'a, '_>, SymCacheError>[src]

Given an address this looks up the symbol at that point.

Because of inling information this returns a vector of zero or more symbols. If nothing is found then the return value will be an empty vector.

Trait Implementations

impl<'_> Debug for SymCache<'_>[src]

impl<'slf, 'd: 'slf> AsSelf<'slf> for SymCache<'d>[src]

type Ref = SymCache<'slf>

The Self type with 'slf lifetimes, returned by as_self.

Auto Trait Implementations

impl<'a> Send for SymCache<'a>

impl<'a> Sync for SymCache<'a>

Blanket Implementations

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

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> Any for T where
    T: 'static + ?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> Erased for T