3 ms·
I use this sometimes with some C/C++ code. Mostly, if I want a break somewhere I do this: *(int*)0 = 1; Which will result in a crash, I attach my debugger,
by SCHiM 8y ago
I use this sometimes with some C/C++ code.
Mostly, if I want a break somewhere I do this:
*(int*)0 = 1;
Which will result in a crash, I attach my debugger, run the code and if it reaches that line it will break and I can inspect everything I want.
It's easier than adding a __asm(int3) because it's cross platform. On windows for example it's not possible to perform inline assembly in x64 builds, and compiler intrinsics are not portable.