mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 17:34:42 +03:00
[GDB] Add watch and rwatch hardware watchpoints
This commit is contained in:
committed by
Michael Brown
parent
6e670b5f38
commit
19386ec2c8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user