Struct symbolic_symcache::InstructionInfo
[−]
[src]
pub struct InstructionInfo { pub addr: u64, pub arch: Arch, pub crashing_frame: bool, pub signal: Option<u32>, pub ip_reg: Option<u64>, }
Helper to determine best instructions.
Fields
addr: u64
The address of the instruction we want to use as a base.
arch: Arch
The architecture we are dealing with.
crashing_frame: bool
This is true if the frame is the cause of the crash.
signal: Option<u32>
If a signal is know that triggers the crash, it can be stored here.
ip_reg: Option<u64>
The optional value of the IP register.
Methods
impl InstructionInfo
[src]
fn is_crash_signal(&self) -> bool
[src]
Returns true if the signal indicates a crash.
fn get_previous_instruction(&self) -> Option<u64>
[src]
Return the previous instruction to the current one if we can determine this for the current architecture.
fn find_best_instruction(&self) -> u64
[src]
Give the information in the instruction info this returns the most accurate instruction.