summaryrefslogtreecommitdiff
path: root/rust/src/architecture.rs
diff options
context:
space:
mode:
authorBrandon Miller <brandon@vector35.com>2025-09-25 08:55:34 -0400
committerBrandon Miller <brandon@vector35.com>2025-09-29 07:07:41 -0400
commit9a9d7d98c2b49c734771397a8d37aca0279dfa21 (patch)
tree7925d31daeeb265e58995bc392f0960a58c7a065 /rust/src/architecture.rs
parent63e37dfb1185552135e397a786e92cd8669880a8 (diff)
Rust APIs needed for guided analysis mode
Required for implementing guided analysis mode in custom implementations of analyze_basic_blocks
Diffstat (limited to 'rust/src/architecture.rs')
-rw-r--r--rust/src/architecture.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs
index 87182a56..1f37a4df 100644
--- a/rust/src/architecture.rs
+++ b/rust/src/architecture.rs
@@ -1949,6 +1949,8 @@ pub struct BasicBlockAnalysisContext {
pub indirect_branches: Vec<IndirectBranchInfo>,
pub indirect_no_return_calls: HashSet<ArchAndAddr>,
pub analysis_skip_override: BNFunctionAnalysisSkipOverride,
+ pub guided_analysis_mode: bool,
+ pub trigger_guided_on_invalid_instruction: bool,
pub translate_tail_calls: bool,
pub disallow_branch_to_string: bool,
pub max_function_size: u64,
@@ -2036,6 +2038,8 @@ impl BasicBlockAnalysisContext {
indirect_branches,
indirect_no_return_calls,
analysis_skip_override: ctx_ref.analysisSkipOverride,
+ guided_analysis_mode: ctx_ref.guidedAnalysisMode,
+ trigger_guided_on_invalid_instruction: ctx_ref.triggerGuidedOnInvalidInstruction,
translate_tail_calls: ctx_ref.translateTailCalls,
disallow_branch_to_string: ctx_ref.disallowBranchToString,
max_function_size: ctx_ref.maxFunctionSize,