Skip to content

Commit 11b2f31

Browse files
committed
Send 'replaylog:begin' when trying to execute beyond the beginning of time
1 parent 7195c3f commit 11b2f31

16 files changed

+39
-36
lines changed

src/GdbServer.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,9 @@ void GdbServer::maybe_notify_stop(const Session& session,
10691069
} else {
10701070
// The start of the debuggee task-group should trigger a silent stop.
10711071
stop_siginfo.si_signo = 0;
1072+
// Documented as "has reached the end (or the beginning when executing
1073+
// backward) of the log"
1074+
reason << "replaylog:begin;";
10721075
LOG(debug) << "Stopping at start of execution while running backwards";
10731076
}
10741077
}

src/test/dlopen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
expect_gdb('EXIT-SUCCESS')
66
expect_gdb('SIGKILL')
77
send_gdb('reverse-continue')
8-
expect_gdb('stopped')
8+
expect_gdb('No more reverse-execution history')
99

1010
ok()

src/test/mmap_replace_most_mappings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
send_gdb('restart 1')
1010
expect_gdb('stopped')
1111
send_gdb('rc')
12-
expect_gdb('stopped')
12+
expect_gdb('No more reverse-execution history')
1313
send_gdb('restart 1')
1414
expect_gdb('stopped')
1515
send_gdb('c')

src/test/mprotect_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
send_gdb('ignore 1 1000000')
1212
expect_gdb('Will ignore')
1313
send_gdb('reverse-continue')
14-
expect_gdb('Program stopped')
14+
expect_gdb('No more reverse-execution history')
1515

1616
ok()

src/test/ptrace_remote_unmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
send_gdb('restart 1')
1010
expect_gdb('stopped')
1111
send_gdb('rc')
12-
expect_gdb('stopped')
12+
expect_gdb('No more reverse-execution history')
1313

1414
ok()

src/test/reverse_continue_exec_subprocess.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
import re
33

44
send_gdb('reverse-cont')
5-
expect_gdb('stopped')
5+
expect_gdb('No more reverse-execution history')
66
send_gdb('reverse-cont')
7-
expect_gdb('stopped')
7+
expect_gdb('No more reverse-execution history')
88
send_gdb('reverse-stepi')
9-
expect_gdb('stopped')
9+
expect_gdb('No more reverse-execution history')
1010
send_gdb('reverse-cont')
11-
expect_gdb('stopped')
11+
expect_gdb('No more reverse-execution history')
1212

1313
send_gdb('b main')
1414
expect_gdb('Breakpoint 1')
1515
send_gdb('c')
1616
expect_gdb('Breakpoint 1')
1717
send_gdb('reverse-cont')
18-
expect_gdb('stopped')
18+
expect_gdb('No more reverse-execution history')
1919
send_gdb('reverse-cont')
20-
expect_gdb('stopped')
20+
expect_gdb('No more reverse-execution history')
2121
send_gdb('reverse-stepi')
22-
expect_gdb('stopped')
22+
expect_gdb('No more reverse-execution history')
2323
send_gdb('reverse-cont')
24-
expect_gdb('stopped')
24+
expect_gdb('No more reverse-execution history')
2525

2626
ok()

src/test/reverse_continue_fork_subprocess.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@
22
import re
33

44
send_gdb('reverse-cont')
5-
expect_gdb('stopped')
5+
expect_gdb('No more reverse-execution history')
66
send_gdb('reverse-cont')
7-
expect_gdb('stopped')
7+
expect_gdb('No more reverse-execution history')
88
send_gdb('reverse-stepi')
9-
expect_gdb('stopped')
9+
expect_gdb('No more reverse-execution history')
1010
send_gdb('reverse-cont')
11-
expect_gdb('stopped')
11+
expect_gdb('No more reverse-execution history')
1212

1313
send_gdb('stepi')
1414
send_gdb('reverse-cont')
15-
expect_gdb('stopped')
15+
expect_gdb('No more reverse-execution history')
1616
send_gdb('reverse-cont')
17-
expect_gdb('stopped')
17+
expect_gdb('No more reverse-execution history')
1818
send_gdb('reverse-stepi')
19-
expect_gdb('stopped')
19+
expect_gdb('No more reverse-execution history')
2020
send_gdb('reverse-cont')
21-
expect_gdb('stopped')
21+
expect_gdb('No more reverse-execution history')
2222

2323
send_gdb('stepi')
2424
send_gdb('reverse-stepi')
2525
send_gdb('reverse-stepi')
26-
expect_gdb('stopped')
26+
expect_gdb('No more reverse-execution history')
2727
send_gdb('reverse-cont')
28-
expect_gdb('stopped')
28+
expect_gdb('No more reverse-execution history')
2929

3030
ok()

src/test/reverse_continue_int3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
expect_gdb('SIGTRAP')
88

99
send_gdb('rc')
10-
expect_gdb('stopped')
10+
expect_gdb('No more reverse-execution history')
1111

1212
ok()

src/test/reverse_continue_process_signal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
send_gdb('c')
66
expect_gdb('SIGKILL')
77
send_gdb('reverse-continue')
8-
expect_gdb('stopped')
8+
expect_gdb('No more reverse-execution history')
99

1010
ok()

src/test/reverse_continue_start.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
import re
33

44
send_gdb('reverse-cont')
5-
expect_gdb('stopped')
5+
expect_gdb('No more reverse-execution history')
66
send_gdb('reverse-cont')
7-
expect_gdb('stopped')
7+
expect_gdb('No more reverse-execution history')
88
send_gdb('reverse-stepi')
9-
expect_gdb('stopped')
9+
expect_gdb('No more reverse-execution history')
1010
send_gdb('b main')
1111
expect_gdb('Breakpoint 1')
1212
send_gdb('c')
1313
expect_gdb('Breakpoint 1')
1414
send_gdb('reverse-cont')
15-
expect_gdb('stopped')
15+
expect_gdb('No more reverse-execution history')
1616
send_gdb('reverse-stepi')
17-
expect_gdb('stopped')
17+
expect_gdb('No more reverse-execution history')
1818
send_gdb('reverse-cont')
19-
expect_gdb('stopped')
19+
expect_gdb('No more reverse-execution history')
2020

2121
ok()

0 commit comments

Comments
 (0)