-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60c08cc
commit 3fa12d3
Showing
5 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
file reptar.align.elf | ||
|
||
starti | ||
|
||
break '_start.exit' if $rbx == 1 | ||
commands | ||
pipe printf "FAIL(rbx=%x,oneiter)\n", $rbx | cat | ||
quit 1 | ||
end | ||
|
||
break '_start.exit' if $rbx > 1 | ||
commands | ||
pipe printf "PASS(rbx=%x,nopsled)\n", $rbx | cat | ||
quit 0 | ||
end | ||
|
||
catch signal SIGSEGV | ||
commands | ||
pipe printf "PASS(rbx=%x,segfault)\n", $rbx | cat | ||
quit 0 | ||
end | ||
|
||
continue | ||
|
||
pipe printf "FAIL(rbx=%x,unexpected)\n", $rbx | cat | ||
quit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
target remote | exec qemu-system-x86_64 --enable-kvm -gdb stdio -S -fda reptar.boot.bin | ||
|
||
hbreak *0x7E00 if $r15 > 0 && $rbx!=$rdx | ||
commands | ||
pipe printf "PASS(r15=%d,rbx=%d,rdx=%d)\n", $r15, $rbx, $rdx | cat | ||
kill | ||
quit 0 | ||
end | ||
|
||
hbreak *0x7E00 if $r15 > 0 && $rbx==$rdx | ||
commands | ||
pipe printf "FAIL(r15=%d,rbx=%d,rdx=%d)\n", $r15, $rbx, $rdx | cat | ||
kill | ||
quit 1 | ||
end | ||
|
||
continue |