diff options
author | Stefan Hajnoczi | 2008-06-02 18:51:43 +0200 |
---|---|---|
committer | Michael Brown | 2008-06-05 01:45:51 +0200 |
commit | 4180815a90c46fc3c410785d232fc0d12737a70d (patch) | |
tree | e4d85c5eb7c2dec6a0255f3d85dadc5b00e9ce35 /src/tests/gdbstub_test.S | |
parent | [GDB] Add GDB stub for remote debugging (diff) | |
download | ipxe-4180815a90c46fc3c410785d232fc0d12737a70d.tar.gz ipxe-4180815a90c46fc3c410785d232fc0d12737a70d.tar.xz ipxe-4180815a90c46fc3c410785d232fc0d12737a70d.zip |
[GDB] Test suite for the GDB stub
Diffstat (limited to 'src/tests/gdbstub_test.S')
-rw-r--r-- | src/tests/gdbstub_test.S | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tests/gdbstub_test.S b/src/tests/gdbstub_test.S new file mode 100644 index 00000000..ee594ea8 --- /dev/null +++ b/src/tests/gdbstub_test.S @@ -0,0 +1,29 @@ + .arch i386 + .section ".text" + .code32 +gdbstub_test: + /* 1. Read registers test */ + movl $0xea010203, %eax + movl $0xeb040506, %ebx + movl $0xec070809, %ecx + movl $0xed0a0b0c, %edx + movl $0x510d0e0f, %esi + movl $0xd1102030, %edi + int $3 + + /* 2. Write registers test */ + int $3 + + /* 3. Read memory test */ + subl $8, %esp + movl $0x11223344, 4(%esp) + movw $0x5566, 2(%esp) + movb $0x77, (%esp) + int $3 + + /* 4. Write memory test */ + int $3 + addl $8, %esp + +1: + jmp 1b |