6 ms·
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
by tptacek 9y ago
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.