|
6 | 6 |
|
7 | 7 | Copyright (c) 2005-2020 Kestrel Technology LLC |
8 | 8 | Copyright (c) 2020 Henny Sipma |
9 | | - Copyright (c) 2021-2024 Aarno Labs LLC |
| 9 | + Copyright (c) 2021-2025 Aarno Labs LLC |
10 | 10 |
|
11 | 11 | Permission is hereby granted, free of charge, to any person obtaining a copy |
12 | 12 | of this software and associated documentation files (the "Software"), to deal |
@@ -585,8 +585,10 @@ let get_successors (faddr:doubleword_int) (iaddr:doubleword_int) = |
585 | 585 | let trace_block (faddr:doubleword_int) (baddr:doubleword_int) = |
586 | 586 |
|
587 | 587 | let set_block_entry (va: doubleword_int) = |
588 | | - TR.titer (fun instr -> |
589 | | - instr#set_block_entry) (get_mips_assembly_instruction va) in |
| 588 | + TR.titer |
| 589 | + ~ok:(fun instr -> instr#set_block_entry) |
| 590 | + ~error:(fun e -> log_error_result __FILE__ __LINE__ e) |
| 591 | + (get_mips_assembly_instruction va) in |
590 | 592 |
|
591 | 593 | let get_instr iaddr = get_mips_assembly_instruction iaddr in |
592 | 594 |
|
@@ -717,7 +719,8 @@ let trace_function (faddr:doubleword_int) = |
717 | 719 | let doneSet = new DoublewordCollections.set_t in |
718 | 720 | let set_block_entry (baddr: doubleword_int) = |
719 | 721 | TR.titer |
720 | | - (fun instr -> instr#set_block_entry) |
| 722 | + ~ok:(fun instr -> instr#set_block_entry) |
| 723 | + ~error:(fun e -> log_error_result __FILE__ __LINE__ e) |
721 | 724 | (get_mips_assembly_instruction baddr) in |
722 | 725 | let get_iaddr s = (ctxt_string_to_location faddr s)#i in |
723 | 726 | let add_to_workset l = |
|
0 commit comments