diff options
author | Stefan Hajnoczi <stefanha@gmail.com> | 2008-06-12 16:56:20 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-06-30 19:19:48 +0100 |
commit | 19386ec2c8c9f266425453673ba051cdb550d0c3 (patch) | |
tree | 3b159c2ad6bcb40241b82279c98742c9dca6ff65 /src/tests/gdbstub_test.S | |
parent | 6e670b5f38903109a0369f81932cca16f8a6eddf (diff) | |
download | ipxe-19386ec2c8c9f266425453673ba051cdb550d0c3.zip ipxe-19386ec2c8c9f266425453673ba051cdb550d0c3.tar.gz ipxe-19386ec2c8c9f266425453673ba051cdb550d0c3.tar.bz2 |
[GDB] Add watch and rwatch hardware watchpoints
Diffstat (limited to 'src/tests/gdbstub_test.S')
-rw-r--r-- | src/tests/gdbstub_test.S | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/gdbstub_test.S b/src/tests/gdbstub_test.S index 6478308..bd29383 100644 --- a/src/tests/gdbstub_test.S +++ b/src/tests/gdbstub_test.S @@ -1,4 +1,9 @@ .arch i386 + + .section ".data" +watch_me: + .long 0xfeedbeef + .section ".text" .code32 gdbstub_test: @@ -29,5 +34,21 @@ gdbstub_test: int $3 nop + /* 6. Access watch test */ + movl $0x600d0000, %ecx + movl watch_me, %eax + movl $0xbad00000, %ecx + int $3 + movl $0x600d0001, %ecx + movl %eax, watch_me + movl $0xbad00001, %ecx + int $3 + + /* 7. Write watch test */ + movl $0x600d0002, %ecx + movl %eax, watch_me + movl $0xbad00002, %ecx + int $3 + 1: jmp 1b |