News for hackers. Stuff that matters.
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.

Re:“We didn't chase the fad of using every Intel CPU feature” by geofft on Sunday May 13, 2018 @08:45PM (#17061895)
Yes, you read what I said correctly, and I was wrong as others pointed out (I blame a lack of coffee).
Re:“We didn't chase the fad of using every Intel CPU feature” by tptacek on Sunday May 13, 2018 @09:19PM (#17062016)
I did pick just about the jerkiest way possible to preen about knowing how to implement a software breakpoint, didn't I? Sorry about that.