pub trait StacktraceExt {
    fn from_gdb<T: AsRef<str>>(trace: T) -> Result<Stacktrace>;
    fn compute_module_offsets(&mut self, mappings: &MappedFiles);
}

Required Methods

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

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

Implementors