Skip to content

Commit

Permalink
fix: retain Brillig solver when handling foreign calls in debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiraldez committed Oct 26, 2023
1 parent 6919ba3 commit 77d3d3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions tooling/debugger/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ impl<'a, B: BlackBoxFunctionSolver> DebugContext<'a, B> {
self.handle_acvm_status(status)
}
BrilligSolverStatus::ForeignCallWait(foreign_call) => {
self.brillig_solver = Some(solver);
self.handle_foreign_call(foreign_call)
}
},
Expand Down
10 changes: 5 additions & 5 deletions tooling/debugger/src/repl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ impl<'a, B: BlackBoxFunctionSolver> ReplDebugger<'a, B> {
}
}

fn handle_debug_command_result(&mut self, result: DebugCommandResult) {
self.last_result = result;
self.show_current_vm_status();
}

fn print_location_path(&self, loc: Location) {
let line_number = self.debug_artifact.location_line_number(loc).unwrap();
let column_number = self.debug_artifact.location_column_number(loc).unwrap();
Expand Down Expand Up @@ -141,6 +136,11 @@ impl<'a, B: BlackBoxFunctionSolver> ReplDebugger<'a, B> {
}
}

fn handle_debug_command_result(&mut self, result: DebugCommandResult) {
self.last_result = result;
self.show_current_vm_status();
}

fn step_acir_opcode(&mut self) {
if self.validate_in_progress() {
let result = self.context.step_acir_opcode();
Expand Down

0 comments on commit 77d3d3d

Please sign in to comment.