|
1 | 1 | use std::{ |
2 | | - collections::{btree_map, BTreeMap, BTreeSet}, |
| 2 | + collections::{BTreeMap, BTreeSet, btree_map}, |
3 | 3 | ops::Range, |
4 | 4 | }; |
5 | 5 |
|
6 | | -use anyhow::{bail, ensure, Context, Result}; |
| 6 | +use anyhow::{Context, Result, bail, ensure}; |
7 | 7 | use ppc750cl::{Ins, Opcode}; |
8 | 8 |
|
9 | 9 | use crate::{ |
10 | 10 | analysis::{ |
| 11 | + RelocationTarget, |
11 | 12 | cfa::{FunctionInfo, SectionAddress}, |
12 | 13 | disassemble, |
13 | 14 | executor::{ExecCbData, ExecCbResult, Executor}, |
14 | 15 | uniq_jump_table_entries, |
15 | | - vm::{section_address_for, BranchTarget, GprValue, StepResult, VM}, |
16 | | - RelocationTarget, |
| 16 | + vm::{BranchTarget, GprValue, StepResult, VM, section_address_for}, |
17 | 17 | }, |
18 | 18 | obj::{ObjInfo, ObjKind, ObjSection, ObjSymbolKind}, |
19 | 19 | }; |
@@ -205,7 +205,11 @@ impl FunctionSlices { |
205 | 205 | } |
206 | 206 | }; |
207 | 207 | if invalid_seq { |
208 | | - bail!("Found multiple functions inside a symbol: {:#010X} and {:#010X}. Check symbols.txt?", prologue, addr) |
| 208 | + bail!( |
| 209 | + "Found multiple functions inside a symbol: {:#010X} and {:#010X}. Check symbols.txt?", |
| 210 | + prologue, |
| 211 | + addr |
| 212 | + ) |
209 | 213 | } |
210 | 214 | } else { |
211 | 215 | self.prologue = Some(addr); |
|
0 commit comments