pub enum InstructionAddrAdjustment {
Auto,
AllButFirst,
All,
None,
Unknown(String),
}
Expand description
Controls the mechanism by which the instruction_addr of a StacktraceFrame is adjusted.
The adjustment tries to transform return addresses to call addresses for symbolication.
Typically, this adjustment needs to be done for all frames but the first, as the first frame is
usually taken directly from the cpu context of a hardware exception or a suspended thread and
the stack trace is created from that.
When the stack walking implementation truncates frames from the top, "all" frames should be
adjusted. In case the stack walking implementation already does the adjustment when producing
stack frames, "none" should be used here.
All frames should be adjusted, for example because the stack walking implementation truncated
frames from the top of the stack, and all remaining frames’ addresses are return addresses.