Skip to content

Commit

Permalink
Fix a breakpoint being skipped after the first syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
1whatleytay committed Nov 12, 2024
1 parent 65652c5 commit 300df32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-backend/src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,12 +823,14 @@ impl SyscallDelegate {
}

pub async fn run<Mem: Memory, Track: Tracker<Mem>>(
&self, debugger: &Executor<Mem, Track>, should_skip_first: bool
&self, debugger: &Executor<Mem, Track>, mut should_skip_first: bool
) -> (DebugFrame, Option<SyscallResult>) {
loop {
let frame = debugger.run(should_skip_first);
let (frame, result, recovered) = self.handle_frame(debugger, frame).await;

should_skip_first = false;

if let Some(frame) = frame {
return (frame, result);
}
Expand Down

0 comments on commit 300df32

Please sign in to comment.