Debian Codegraph @

third_party/rust/framehop/src/x86_64/instruction_analysis/mod.rs

raw
1 use super::arch::ArchX86_64;
2 use crate::instruction_analysis::InstructionAnalysis;
3
4 mod epilogue;
5 mod prologue;
6
7 use epilogue::unwind_rule_from_detected_epilogue;
8 use prologue::unwind_rule_from_detected_prologue;
9
10 impl 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 }