mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-07-05 04:35:59 +00:00
Continue analyzing functions after unknown jumps (#106)
* Continue analyzing functions after unknown jumps
This commit is contained in:
parent
d969819b78
commit
7bc0bc474d
@ -417,9 +417,13 @@ impl Tracker {
|
||||
Ok(ExecCbResult::Continue)
|
||||
}
|
||||
StepResult::Jump(target) => match target {
|
||||
BranchTarget::Return => Ok(ExecCbResult::EndBlock),
|
||||
BranchTarget::Unknown
|
||||
| BranchTarget::Return
|
||||
| BranchTarget::JumpTable { address: RelocationTarget::External, .. } => {
|
||||
let next_addr = ins_addr + 4;
|
||||
if next_addr < function_end {
|
||||
possible_missed_branches.insert(ins_addr + 4, vm.clone_all());
|
||||
}
|
||||
Ok(ExecCbResult::EndBlock)
|
||||
}
|
||||
BranchTarget::Address(addr) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user