Struct symbolic::debuginfo::dwarf::DwarfDebugSession[][src]

pub struct DwarfDebugSession<'data> { /* fields omitted */ }

A debugging session for DWARF debugging information.

Implementations

impl<'data> DwarfDebugSession<'data>[src]

pub fn parse<D>(
    dwarf: &D,
    symbol_map: SymbolMap<'data>,
    address_offset: i64,
    kind: ObjectKind
) -> Result<DwarfDebugSession<'data>, DwarfError> where
    D: Dwarf<'data>, 
[src]

Parses a dwarf debugging information from the given DWARF file.

pub fn files(&self) -> DwarfFileIterator<'_>

Notable traits for DwarfFileIterator<'s>

impl<'s> Iterator for DwarfFileIterator<'s> type Item = Result<FileEntry<'s>, DwarfError>;
[src]

Returns an iterator over all source files in this debug file.

pub fn functions(&self) -> DwarfFunctionIterator<'_>

Notable traits for DwarfFunctionIterator<'s>

impl<'s> Iterator for DwarfFunctionIterator<'s> type Item = Result<Function<'s>, DwarfError>;
[src]

Returns an iterator over all functions in this debug file.

pub fn source_by_path(
    &self,
    _path: &str
) -> Result<Option<Cow<'_, str>>, DwarfError>
[src]

Looks up a file’s source contents by its full canonicalized path.

The given path must be canonicalized.

Trait Implementations

impl<'data, 'session> DebugSession<'session> for DwarfDebugSession<'data>[src]

type Error = DwarfError

The error returned when reading debug information fails.

type FunctionIterator = DwarfFunctionIterator<'session>

An iterator over all functions in this debug file.

type FileIterator = DwarfFileIterator<'session>

An iterator over all source files referenced by this debug file.

Auto Trait Implementations

impl<'data> !RefUnwindSafe for DwarfDebugSession<'data>

impl<'data> Send for DwarfDebugSession<'data>

impl<'data> !Sync for DwarfDebugSession<'data>

impl<'data> Unpin for DwarfDebugSession<'data>

impl<'data> UnwindSafe for DwarfDebugSession<'data>

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, 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.