mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 10:02:42 +03:00
[GDB] Test suite for the GDB stub
This commit is contained in:
committed by
Michael Brown
parent
04bc50f025
commit
4180815a90
29
src/tests/gdbstub_test.S
Normal file
29
src/tests/gdbstub_test.S
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user