framehop/x86_64/instruction_analysis/
mod.rs

1use super::arch::ArchX86_64;
2use crate::instruction_analysis::InstructionAnalysis;
3
4mod epilogue;
5mod prologue;
6
7use epilogue::unwind_rule_from_detected_epilogue;
8use prologue::unwind_rule_from_detected_prologue;
9
10impl InstructionAnalysis for ArchX86_64 {
11    fn rule_from_prologue_analysis(
12        text_bytes: &[u8],
13        pc_offset: usize,
14    ) -> Option<Self::UnwindRule> {
15        unwind_rule_from_detected_prologue(text_bytes, pc_offset)
16    }
17
18    fn rule_from_epilogue_analysis(
19        text_bytes: &[u8],
20        pc_offset: usize,
21    ) -> Option<Self::UnwindRule> {
22        unwind_rule_from_detected_epilogue(text_bytes, pc_offset)
23    }
24}