Trait gdb_command::stacktrace::StacktraceExt
source · [−]pub trait StacktraceExt {
fn from_gdb<T: AsRef<str>>(trace: T) -> Result<Stacktrace>;
fn compute_module_offsets(&mut self, mappings: &MappedFiles);
}
Required Methods
sourcefn from_gdb<T: AsRef<str>>(trace: T) -> Result<Stacktrace>
fn from_gdb<T: AsRef<str>>(trace: T) -> Result<Stacktrace>
Get stack trace as a string and converts it into ‘Stacktrace’
Arguments
- ‘trace’ - stack trace from gdb
Return value
The return value is a ‘Stacktrace’ struct
sourcefn compute_module_offsets(&mut self, mappings: &MappedFiles)
fn compute_module_offsets(&mut self, mappings: &MappedFiles)
Compute module offsets for stack trace entries based on mapped files. Gdb doesn’t print module and offset in stack trace.
Arguments
- ‘mappings’ - information about mapped files