summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag/wall2/gdbwatch.gdb
blob: 36b33397a719fbc57e5e602c81ac935b0ad8b0ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set pagination off
set confirm off
break *POLLADDR
commands 1
silent
set $e = *(unsigned long*)($rdi+0x1428)
watch *(unsigned short*)($e+0x2e)
printf "WATCH set at %p+0x2e\n", $e
disable 1
continue
end
commands 2
silent
printf "WRITE to slot+0x2e: old=%x new=%x by pc=%p\n", *(unsigned short*)($e+0x2e), $eax, $pc
bt 3
continue
end
continue