Skip to content

Commit

Permalink
Don't echo output to stdio during reverse-execution.
Browse files Browse the repository at this point in the history
I think I regressed this in 696fc97.
  • Loading branch information
rocallahan committed Aug 17, 2024
1 parent d451500 commit cc97712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ReplaySession.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ bool ReplaySession::mark_stdio() const {
}

bool ReplaySession::echo_stdio() const {
return flags().redirect_stdio &&
return flags().redirect_stdio && visible_execution_ &&
current_frame_time() >= suppress_stdio_before_event_;
}

Expand Down
4 changes: 3 additions & 1 deletion src/test/vfork_read_clone_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
expect_gdb('Program received signal SIGKILL')

send_gdb('rc')
expect_gdb('No more reverse-execution history')
expect_gdb(['(No more reverse-execution history)', '(child)'])

assert 'child' not in last_match().group(1)

send_gdb('c')
ok()

0 comments on commit cc97712

Please sign in to comment.