I am using a simple command like this :
bp KernelFunctionAddress "dd esp L1;g"
but when the breakpoint is hit I get this :
Break
instruction exception - code 80000003 (first chance)nt!KernelFunction:87975cd0 8bff mov edi,edi
why is this happening? why the command is not getting executed after breakpoint is hit? I just simply want to dump the value of the esp and do a g command so it doesn't stop, but its not working?
assume KernelFunction is a function in the kernel, it doesn't matter what function. I'm also using windbg preview