Struct symbolic::debuginfo::dwarf::DwarfDebugSession [−][src]
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]
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>;
[src]
Notable traits for DwarfFileIterator<'s>
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>;
[src]
Notable traits for DwarfFunctionIterator<'s>
impl<'s> Iterator for DwarfFunctionIterator<'s> type Item = Result<Function<'s>, DwarfError>;
Returns an iterator over all functions in this debug file.
pub fn source_by_path(
&self,
_path: &str
) -> Result<Option<Cow<'_, str>>, DwarfError>
[src]
&self,
_path: &str
) -> Result<Option<Cow<'_, str>>, DwarfError>
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.
pub fn functions(
&'session self
) -> <DwarfDebugSession<'data> as DebugSession<'session>>::FunctionIterator
[src]
&'session self
) -> <DwarfDebugSession<'data> as DebugSession<'session>>::FunctionIterator
pub fn files(
&'session self
) -> <DwarfDebugSession<'data> as DebugSession<'session>>::FileIterator
[src]
&'session self
) -> <DwarfDebugSession<'data> as DebugSession<'session>>::FileIterator
pub fn source_by_path(
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, <DwarfDebugSession<'data> as DebugSession<'session>>::Error>
[src]
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, <DwarfDebugSession<'data> as DebugSession<'session>>::Error>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,