Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And the next time she will find out how gdb breakpoints work, int3.

Something like http://www.cs.columbia.edu/~junfeng/09sp-w4118/lectures/int3...



X86 debug registers (DR0-3, DR6, DR7) are also useful. They don't require code changes. As an added bonus, you can set a breakpoint for a variable access, which triggers whenever a certain variable is accessed.

Although unfortunately debug registers are limited to just 4 simultaneous breakpoints in the same time.

http://wiki.osdev.org/CPU_Registers_x86#Debug_Registers




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: