global variable

i have a global var defined as

DWORD g_MyVar;

how do i set a break point in windbg so that it automatically breaks into
the debugger when the value of this variable reaches 1.

I dont want to modify driver code to do this

i want windbg commands to achieve it.

ap

ba r4 yourDriver!g_MyVar

what about using windbg help, breakpoint commands?

“A P” wrote in message news:xxxxx@ntdev…
i have a global var defined as

DWORD g_MyVar;

how do i set a break point in windbg so that it automatically breaks into the debugger when the value of this variable reaches 1.

I dont want to modify driver code to do this

i want windbg commands to achieve it.

ap