Skip to content

Commit

Permalink
Detect _exit by matching the _exit breakpoint
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
edward-jones committed Apr 24, 2019
1 parent 2544dc9 commit 33bb9e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2019-04-23 Edward Jones <[email protected]>

* config/ri5cyverilator.exp (beebs_load): Check for
_exit breakpoint instead of __internal_syscall when trying
to detect exit.

2019-04-10 Jeremy Bennett <[email protected]>

This gives greater flexibility when testing with BEEBS. The
Expand Down
2 changes: 1 addition & 1 deletion testsuite/config/ri5cyverilator.exp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ proc beebs_load { file } {
# _exit and check its argument instead).
send "cont\n"
expect {
-re ".*__internal_syscall.*n=93.*" {
-re ".*stopped.*_exit.*" {
send "print \$a0\n"
}
timeout {
Expand Down

0 comments on commit 33bb9e4

Please sign in to comment.