Skip to content

Commit 994b6e2

Browse files
committed
Detect _exit by matching the _exit breakpoint
This should work more consistently than looking for a call to __internal_syscall, which was very library specific. testsuite/ChangeLog: * config/ri5cyverilator.exp (beebs_load): Check for _exit breakpoint instead of __internal_syscall when trying to detect exit.
1 parent e23aaf7 commit 994b6e2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

testsuite/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2019-04-18 Edward Jones <[email protected]>
2+
3+
* config/ri5cyverilator.exp (beebs_load): Check for
4+
_exit breakpoint instead of __internal_syscall when trying
5+
to detect exit.
6+
17
2019-04-10 Jeremy Bennett <[email protected]>
28

39
This gives greater flexibility when testing with BEEBS. The

testsuite/config/ri5cyverilator.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ proc beebs_load { file } {
9595
# _exit and check its argument instead).
9696
send "cont\n"
9797
expect {
98-
-re ".*__internal_syscall.*n=93.*" {
98+
-re ".*stopped.*_exit.*" {
9999
send "print \$a0\n"
100100
}
101101
timeout {

0 commit comments

Comments
 (0)