Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windbg: How to do break-on-write on a kernel data structure?

I'm new to WinDbg, and I wanted to understand if it was possible to do a break-on-write on a kernel data structure (could be a structure or an array), similar to what can be done in gdb ?

like image 746
TCSGrad Avatar asked Mar 16 '26 07:03

TCSGrad


1 Answers

Lets say the structure you are interested has a member that you want to break-in when it gets modified. Use:

ba w4 "address of structure + offset to interesting member"

ba = break on access

w4 = writing of anything from the start address provided for a length of 4 bytes.

like image 161
JasonE Avatar answered Mar 19 '26 05:03

JasonE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!