Re:“We didn't chase the fad of using every Intel CPU feature”
by tptacek on Sunday May 13, 2018 @07:31PM
(#17061607)
Am I misreading this or are you saying that without hardware breakpoints you have to single step all the way through the program to the breakpoint location?
If so: that's a surprising and weird thing to say. Without hardware breakpoints, userspace debuggers work by overwriting the instruction at the target with an interrupting instruction, and then restoring it before resuming.
I'm trying to imagine how gdb breakpoints in OpenBSD would even work if they required single-stepping whole programs.
If so: that's a surprising and weird thing to say. Without hardware breakpoints, userspace debuggers work by overwriting the instruction at the target with an interrupting instruction, and then restoring it before resuming.
I'm trying to imagine how gdb breakpoints in OpenBSD would even work if they required single-stepping whole programs.