An object containing debug information.
Errors thrown when reading information from this object.
type Session: DebugSession<Error = Self::Error>
A session that allows optimized access to debugging information.
fn file_format(&self) -> FileFormat
The container format of this file.
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.
fn debug_id(&self) -> DebugId
The debug information identifier of this object.
The CPU architecture of this object.
fn kind(&self) -> ObjectKind
The kind of this object.
fn load_address(&self) -> u64
The address at which the image prefers to be loaded into memory.
fn has_symbols(&self) -> bool
Determines whether this object exposes a public symbol table.
fn symbols(&self) -> DynIterator<Symbol>
Returns an iterator over symbols in the public symbol table.
fn symbol_map(&self) -> SymbolMap
Returns an ordered map of symbols in the symbol table.
fn has_debug_info(&self) -> bool
Determines whether this object contains debug information.
fn debug_session(&self) -> Result<Self::Session, Self::Error>
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
fn has_unwind_info(&self) -> bool
Determines whether this object contains stack unwinding information.