Struct symbolic::debuginfo::dwarf::DwarfDebugSession [−][src]
pub struct DwarfDebugSession<'data> { /* fields omitted */ }
Expand description
A debugging session for DWARF debugging information.
Implementations
pub fn parse<D>(
dwarf: &D,
symbol_map: SymbolMap<'data>,
address_offset: i64,
kind: ObjectKind
) -> Result<DwarfDebugSession<'data>, DwarfError> where
D: Dwarf<'data>,
pub fn parse<D>(
dwarf: &D,
symbol_map: SymbolMap<'data>,
address_offset: i64,
kind: ObjectKind
) -> Result<DwarfDebugSession<'data>, DwarfError> where
D: Dwarf<'data>,
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>;
pub fn files(&self) -> DwarfFileIterator<'_>ⓘNotable traits for DwarfFileIterator<'s>impl<'s> Iterator for DwarfFileIterator<'s> type Item = Result<FileEntry<'s>, DwarfError>;
impl<'s> Iterator for DwarfFileIterator<'s> type Item = Result<FileEntry<'s>, DwarfError>;
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>;
pub fn functions(&self) -> DwarfFunctionIterator<'_>ⓘNotable traits for DwarfFunctionIterator<'s>impl<'s> Iterator for DwarfFunctionIterator<'s> type Item = Result<Function<'s>, DwarfError>;
impl<'s> Iterator for DwarfFunctionIterator<'s> type Item = Result<Function<'s>, DwarfError>;
Returns an iterator over all functions in this debug file.
Looks up a file’s source contents by its full canonicalized path.
The given path must be canonicalized.
Trait Implementations
type Error = DwarfError
type Error = DwarfError
The error returned when reading debug information fails.
type FunctionIterator = DwarfFunctionIterator<'session>
type FunctionIterator = DwarfFunctionIterator<'session>
An iterator over all functions in this debug file.
type FileIterator = DwarfFileIterator<'session>
type FileIterator = DwarfFileIterator<'session>
An iterator over all source files referenced by this debug file.
pub fn functions(
&'session self
) -> <DwarfDebugSession<'data> as DebugSession<'session>>::FunctionIterator
pub fn functions(
&'session self
) -> <DwarfDebugSession<'data> as DebugSession<'session>>::FunctionIterator
Returns an iterator over all functions in this debug file. Read more
pub fn files(
&'session self
) -> <DwarfDebugSession<'data> as DebugSession<'session>>::FileIterator
pub fn files(
&'session self
) -> <DwarfDebugSession<'data> as DebugSession<'session>>::FileIterator
Returns an iterator over all source files referenced by this debug file.
pub fn source_by_path(
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, <DwarfDebugSession<'data> as DebugSession<'session>>::Error>
pub fn source_by_path(
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, <DwarfDebugSession<'data> as DebugSession<'session>>::Error>
Looks up a file’s source contents by its full canonicalized path. Read more
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
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
pub fn extract_context(self, _original_input: I)
pub fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
pub fn recreate_context(_original_input: I, tail: I) -> I
pub fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more