Skip to content

Commit

Permalink
Clear first two parameter registers
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Nov 28, 2017
1 parent b8f6da1 commit 33b8759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RerunCommand.cc
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ static void run_diversion_function(ReplaySession& replay, Task* task,
t->write_mem(sp.cast<uint64_t>(), sentinel_ret_address);
regs.set_sp(sp);
regs.set_ip(flags.function);
regs.set_di(0);
regs.set_si(0);
t->set_regs(regs);
RunCommand cmd =
flags.singlestep_trace.empty() ? RUN_CONTINUE : RUN_SINGLESTEP;
Expand Down

0 comments on commit 33b8759

Please sign in to comment.