Trait symbolic::debuginfo::ObjectLike [−][src]
An object containing debug information.
Associated Types
type Error
[src]
Errors thrown when reading information from this object.
type Session: for<'session> DebugSession<'session>
[src]
A session that allows optimized access to debugging information.
type SymbolIterator: Iterator
[src]
The iterator over the symbols in the public symbol table.
Required methods
pub fn file_format(&self) -> FileFormat
[src]
The container format of this file.
pub fn code_id(&self) -> Option<CodeId>
[src]
The code identifier of this object.
The identifier can be None
if it cannot be determined from the object file, for instance,
because the identifier was stripped in the build process.
pub fn debug_id(&self) -> DebugId
[src]
The debug information identifier of this object.
pub fn arch(&self) -> Arch
[src]
The CPU architecture of this object.
pub fn kind(&self) -> ObjectKind
[src]
The kind of this object.
pub fn load_address(&self) -> u64
[src]
The address at which the image prefers to be loaded into memory.
pub fn has_symbols(&self) -> bool
[src]
Determines whether this object exposes a public symbol table.
pub fn symbols(&'object self) -> Self::SymbolIterator
[src]
Returns an iterator over symbols in the public symbol table.
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
Returns an ordered map of symbols in the symbol table.
pub fn has_debug_info(&self) -> bool
[src]
Determines whether this object contains debug information.
pub fn debug_session(&'object self) -> Result<Self::Session, Self::Error>
[src]
Constructs a debugging session.
A debugging session loads certain information from the object file and creates caches for efficient access to various records in the debug information. Since this can be quite a costly process, try to reuse the debugging session as long as possible.
Constructing this session will also work if the object does not contain debugging
information, in which case the session will be a no-op. This can be checked via
has_debug_info
.
pub fn has_unwind_info(&self) -> bool
[src]
Determines whether this object contains stack unwinding information.
pub fn has_sources(&self) -> bool
[src]
Determines whether this object contains embedded sources.
Implementors
impl<'data, 'object> ObjectLike<'data, 'object> for Object<'data> where
'data: 'object,
[src]
'data: 'object,
type Error = ObjectError
type Session = ObjectDebugSession<'data>
type SymbolIterator = SymbolIterator<'data, 'object>
pub fn file_format(&self) -> FileFormat
[src]
pub fn code_id(&self) -> Option<CodeId>
[src]
pub fn debug_id(&self) -> DebugId
[src]
pub fn arch(&self) -> Arch
[src]
pub fn kind(&self) -> ObjectKind
[src]
pub fn load_address(&self) -> u64
[src]
pub fn has_symbols(&self) -> bool
[src]
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
pub fn symbols(
&'object self
) -> <Object<'data> as ObjectLike<'data, 'object>>::SymbolIterator
[src]
&'object self
) -> <Object<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn has_debug_info(&self) -> bool
[src]
pub fn debug_session(
&self
) -> Result<<Object<'data> as ObjectLike<'data, 'object>>::Session, <Object<'data> as ObjectLike<'data, 'object>>::Error>
[src]
&self
) -> Result<<Object<'data> as ObjectLike<'data, 'object>>::Session, <Object<'data> as ObjectLike<'data, 'object>>::Error>
pub fn has_unwind_info(&self) -> bool
[src]
pub fn has_sources(&self) -> bool
[src]
impl<'data, 'object> ObjectLike<'data, 'object> for BreakpadObject<'data> where
'data: 'object,
[src]
'data: 'object,
type Error = BreakpadError
type Session = BreakpadDebugSession<'data>
type SymbolIterator = BreakpadSymbolIterator<'data>
pub fn file_format(&self) -> FileFormat
[src]
pub fn code_id(&self) -> Option<CodeId>
[src]
pub fn debug_id(&self) -> DebugId
[src]
pub fn arch(&self) -> Arch
[src]
pub fn kind(&self) -> ObjectKind
[src]
pub fn load_address(&self) -> u64
[src]
pub fn has_symbols(&self) -> bool
[src]
pub fn symbols(
&self
) -> <BreakpadObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
[src]
&self
) -> <BreakpadObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
pub fn has_debug_info(&self) -> bool
[src]
pub fn debug_session(
&self
) -> Result<<BreakpadObject<'data> as ObjectLike<'data, 'object>>::Session, <BreakpadObject<'data> as ObjectLike<'data, 'object>>::Error>
[src]
&self
) -> Result<<BreakpadObject<'data> as ObjectLike<'data, 'object>>::Session, <BreakpadObject<'data> as ObjectLike<'data, 'object>>::Error>
pub fn has_unwind_info(&self) -> bool
[src]
pub fn has_sources(&self) -> bool
[src]
impl<'data, 'object> ObjectLike<'data, 'object> for ElfObject<'data> where
'data: 'object,
[src]
'data: 'object,
type Error = DwarfError
type Session = DwarfDebugSession<'data>
type SymbolIterator = ElfSymbolIterator<'data, 'object>
pub fn file_format(&self) -> FileFormat
[src]
pub fn code_id(&self) -> Option<CodeId>
[src]
pub fn debug_id(&self) -> DebugId
[src]
pub fn arch(&self) -> Arch
[src]
pub fn kind(&self) -> ObjectKind
[src]
pub fn load_address(&self) -> u64
[src]
pub fn has_symbols(&self) -> bool
[src]
pub fn symbols(
&'object self
) -> <ElfObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
[src]
&'object self
) -> <ElfObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
pub fn has_debug_info(&self) -> bool
[src]
pub fn debug_session(
&self
) -> Result<<ElfObject<'data> as ObjectLike<'data, 'object>>::Session, <ElfObject<'data> as ObjectLike<'data, 'object>>::Error>
[src]
&self
) -> Result<<ElfObject<'data> as ObjectLike<'data, 'object>>::Session, <ElfObject<'data> as ObjectLike<'data, 'object>>::Error>
pub fn has_unwind_info(&self) -> bool
[src]
pub fn has_sources(&self) -> bool
[src]
impl<'data, 'object> ObjectLike<'data, 'object> for MachObject<'data> where
'data: 'object,
[src]
'data: 'object,
type Error = DwarfError
type Session = DwarfDebugSession<'data>
type SymbolIterator = MachOSymbolIterator<'data>
pub fn file_format(&self) -> FileFormat
[src]
pub fn code_id(&self) -> Option<CodeId>
[src]
pub fn debug_id(&self) -> DebugId
[src]
pub fn arch(&self) -> Arch
[src]
pub fn kind(&self) -> ObjectKind
[src]
pub fn load_address(&self) -> u64
[src]
pub fn has_symbols(&self) -> bool
[src]
pub fn symbols(
&self
) -> <MachObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
[src]
&self
) -> <MachObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
pub fn has_debug_info(&self) -> bool
[src]
pub fn debug_session(
&self
) -> Result<<MachObject<'data> as ObjectLike<'data, 'object>>::Session, <MachObject<'data> as ObjectLike<'data, 'object>>::Error>
[src]
&self
) -> Result<<MachObject<'data> as ObjectLike<'data, 'object>>::Session, <MachObject<'data> as ObjectLike<'data, 'object>>::Error>
pub fn has_unwind_info(&self) -> bool
[src]
pub fn has_sources(&self) -> bool
[src]
impl<'data, 'object> ObjectLike<'data, 'object> for PdbObject<'data> where
'data: 'object,
[src]
'data: 'object,
type Error = PdbError
type Session = PdbDebugSession<'data>
type SymbolIterator = PdbSymbolIterator<'data, 'object>
pub fn file_format(&self) -> FileFormat
[src]
pub fn code_id(&self) -> Option<CodeId>
[src]
pub fn debug_id(&self) -> DebugId
[src]
pub fn arch(&self) -> Arch
[src]
pub fn kind(&self) -> ObjectKind
[src]
pub fn load_address(&self) -> u64
[src]
pub fn has_symbols(&self) -> bool
[src]
pub fn symbols(
&'object self
) -> <PdbObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
[src]
&'object self
) -> <PdbObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
pub fn has_debug_info(&self) -> bool
[src]
pub fn debug_session(
&self
) -> Result<<PdbObject<'data> as ObjectLike<'data, 'object>>::Session, <PdbObject<'data> as ObjectLike<'data, 'object>>::Error>
[src]
&self
) -> Result<<PdbObject<'data> as ObjectLike<'data, 'object>>::Session, <PdbObject<'data> as ObjectLike<'data, 'object>>::Error>
pub fn has_unwind_info(&self) -> bool
[src]
pub fn has_sources(&self) -> bool
[src]
impl<'data, 'object> ObjectLike<'data, 'object> for PeObject<'data> where
'data: 'object,
[src]
'data: 'object,
type Error = PeError
type Session = PeDebugSession<'data>
type SymbolIterator = PeSymbolIterator<'data, 'object>
pub fn file_format(&self) -> FileFormat
[src]
pub fn code_id(&self) -> Option<CodeId>
[src]
pub fn debug_id(&self) -> DebugId
[src]
pub fn arch(&self) -> Arch
[src]
pub fn kind(&self) -> ObjectKind
[src]
pub fn load_address(&self) -> u64
[src]
pub fn has_symbols(&self) -> bool
[src]
pub fn symbols(
&'object self
) -> <PeObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
[src]
&'object self
) -> <PeObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
pub fn has_debug_info(&self) -> bool
[src]
pub fn debug_session(
&self
) -> Result<<PeObject<'data> as ObjectLike<'data, 'object>>::Session, <PeObject<'data> as ObjectLike<'data, 'object>>::Error>
[src]
&self
) -> Result<<PeObject<'data> as ObjectLike<'data, 'object>>::Session, <PeObject<'data> as ObjectLike<'data, 'object>>::Error>
pub fn has_unwind_info(&self) -> bool
[src]
pub fn has_sources(&self) -> bool
[src]
impl<'data, 'object> ObjectLike<'data, 'object> for SourceBundle<'data> where
'data: 'object,
[src]
'data: 'object,
type Error = SourceBundleError
type Session = SourceBundleDebugSession<'data>
type SymbolIterator = Empty<Symbol<'data>>
pub fn file_format(&self) -> FileFormat
[src]
pub fn code_id(&self) -> Option<CodeId>
[src]
pub fn debug_id(&self) -> DebugId
[src]
pub fn arch(&self) -> Arch
[src]
pub fn kind(&self) -> ObjectKind
[src]
pub fn load_address(&self) -> u64
[src]
pub fn has_symbols(&self) -> bool
[src]
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
pub fn symbols(
&self
) -> <SourceBundle<'data> as ObjectLike<'data, 'object>>::SymbolIterator
[src]
&self
) -> <SourceBundle<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn has_debug_info(&self) -> bool
[src]
pub fn debug_session(
&self
) -> Result<<SourceBundle<'data> as ObjectLike<'data, 'object>>::Session, <SourceBundle<'data> as ObjectLike<'data, 'object>>::Error>
[src]
&self
) -> Result<<SourceBundle<'data> as ObjectLike<'data, 'object>>::Session, <SourceBundle<'data> as ObjectLike<'data, 'object>>::Error>
pub fn has_unwind_info(&self) -> bool
[src]
pub fn has_sources(&self) -> bool
[src]
impl<'data, 'object> ObjectLike<'data, 'object> for WasmObject<'data> where
'data: 'object,
[src]
'data: 'object,
type Error = DwarfError
type Session = DwarfDebugSession<'data>
type SymbolIterator = WasmSymbolIterator<'data, 'object>
pub fn file_format(&self) -> FileFormat
[src]
pub fn code_id(&self) -> Option<CodeId>
[src]
pub fn debug_id(&self) -> DebugId
[src]
pub fn arch(&self) -> Arch
[src]
pub fn kind(&self) -> ObjectKind
[src]
pub fn load_address(&self) -> u64
[src]
pub fn has_symbols(&self) -> bool
[src]
pub fn symbols(
&'object self
) -> <WasmObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
[src]
&'object self
) -> <WasmObject<'data> as ObjectLike<'data, 'object>>::SymbolIterator
pub fn symbol_map(&self) -> SymbolMap<'data>
[src]
pub fn has_debug_info(&self) -> bool
[src]
pub fn debug_session(
&self
) -> Result<<WasmObject<'data> as ObjectLike<'data, 'object>>::Session, <WasmObject<'data> as ObjectLike<'data, 'object>>::Error>
[src]
&self
) -> Result<<WasmObject<'data> as ObjectLike<'data, 'object>>::Session, <WasmObject<'data> as ObjectLike<'data, 'object>>::Error>