Skip to content

Commit

Permalink
Fix seek-ticks when already at the target event
Browse files Browse the repository at this point in the history
  • Loading branch information
dzaima committed May 13, 2023
1 parent 0348e30 commit 32b5e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GdbServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1606,9 +1606,9 @@ void GdbServer::restart_session(const GdbRequest& req) {
if (frame.tid() == task->tuid().tid() && frame.ticks() >= target) {
break;
}
last_time = frame.time();
last_time = frame.time() + 1;
}
timeline.seek_to_ticks(last_time + 1, target);
timeline.seek_to_ticks(last_time, target);
}

interrupt_pending = true;
Expand Down

0 comments on commit 32b5e05

Please sign in to comment.