Recently was doing some pydbg testing, so I had to remove the AeDebug entry (which determines the JIT debugger) in the registry, and Windbg was (and is) my JIT debugger. Exported the key before deleting it. It was:
and the values were:
(Default) REG_SZ (value not set)
Auto REG_SZ 1
Debugger REG_SZ "C:\...\windbg.exe" -p %ld -e %ld -g
UserDebuggerHotKey REG_DWORD 0x00000000 (0)
Now I had to test some other stuff in Windbg, so I added the exported AeDebug key in the .reg file.
However, when I attempt to run a few test assembly programs that contact int 3h/0xCC (which should make Windbg come up as my JIT debugger) instead my system freezes with no BSOD, and I have to power off/turn back on.
I've deleted all of AeDebug and re-ran "windbg -I" to register it as my JIT debugger. However, I still get system freezes!
Please help! It only occurs so far when code Im running contains an int 3h breakpoint in it.
I tried running an assembly (masm32) program that I compiled with the following to test:
.model flat, stdcall
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
invoke ExitProcess, 0
However, the system still freezes. When I run windbg first and I step out of the breakpoint, it exits like normal but doesn't feeze my whole system.
How can I get normal breakpoints again that dont cause undefined behavior?