Enum symbolic::debuginfo::ObjectDebugSession
source · pub enum ObjectDebugSession<'d> {
Breakpad(BreakpadDebugSession<'d>),
Dwarf(DwarfDebugSession<'d>),
Pdb(PdbDebugSession<'d>),
SourceBundle(SourceBundleDebugSession<'d>),
PortablePdb(PortablePdbDebugSession<'d>),
}
Expand description
A generic debugging session.
Variants§
Breakpad(BreakpadDebugSession<'d>)
Dwarf(DwarfDebugSession<'d>)
Pdb(PdbDebugSession<'d>)
SourceBundle(SourceBundleDebugSession<'d>)
PortablePdb(PortablePdbDebugSession<'d>)
Implementations§
source§impl<'d> ObjectDebugSession<'d>
impl<'d> ObjectDebugSession<'d>
sourcepub fn functions(&self) -> ObjectFunctionIterator<'_> ⓘ
pub fn functions(&self) -> ObjectFunctionIterator<'_> ⓘ
Returns an iterator over all functions in this debug file.
Functions are iterated in the order they are declared in their compilation units. The functions yielded by this iterator include all inlinees and line records resolved.
Note that the iterator holds a mutable borrow on the debug session, which allows it to use caches and optimize resources while resolving function and line information.
sourcepub fn files(&self) -> ObjectFileIterator<'_> ⓘ
pub fn files(&self) -> ObjectFileIterator<'_> ⓘ
Returns an iterator over all source files referenced by this debug file.
sourcepub fn source_by_path(
&self,
path: &str
) -> Result<Option<SourceFileDescriptor<'_>>, ObjectError>
pub fn source_by_path( &self, path: &str ) -> Result<Option<SourceFileDescriptor<'_>>, ObjectError>
Looks up a file’s source by its full canonicalized path. Returns either source contents, if it was embedded, or a source link.
Trait Implementations§
source§impl<'session> DebugSession<'session> for ObjectDebugSession<'_>
impl<'session> DebugSession<'session> for ObjectDebugSession<'_>
§type Error = ObjectError
type Error = ObjectError
The error returned when reading debug information fails.
§type FunctionIterator = ObjectFunctionIterator<'session>
type FunctionIterator = ObjectFunctionIterator<'session>
An iterator over all functions in this debug file.
§type FileIterator = ObjectFileIterator<'session>
type FileIterator = ObjectFileIterator<'session>
An iterator over all source files referenced by this debug file.
source§fn functions(
&'session self
) -> <ObjectDebugSession<'_> as DebugSession<'session>>::FunctionIterator
fn functions( &'session self ) -> <ObjectDebugSession<'_> as DebugSession<'session>>::FunctionIterator
Returns an iterator over all functions in this debug file. Read more
source§fn files(
&'session self
) -> <ObjectDebugSession<'_> as DebugSession<'session>>::FileIterator
fn files( &'session self ) -> <ObjectDebugSession<'_> as DebugSession<'session>>::FileIterator
Returns an iterator over all source files referenced by this debug file.
source§fn source_by_path(
&self,
path: &str
) -> Result<Option<SourceFileDescriptor<'_>>, <ObjectDebugSession<'_> as DebugSession<'session>>::Error>
fn source_by_path( &self, path: &str ) -> Result<Option<SourceFileDescriptor<'_>>, <ObjectDebugSession<'_> as DebugSession<'session>>::Error>
Looks up a file’s source by its full canonicalized path. Read more
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for ObjectDebugSession<'d>
impl<'d> !Send for ObjectDebugSession<'d>
impl<'d> !Sync for ObjectDebugSession<'d>
impl<'d> Unpin for ObjectDebugSession<'d>
impl<'d> !UnwindSafe for ObjectDebugSession<'d>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
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