How to print every executed line in GDB automatically until a given breakpoint is reached?
Well, this wasn’t easy – but I think I somewhat got it 🙂 I went through a bunch of failed attempts (posted here); relevant code is below. Basically, the problem in a “next/step until breakpoint” is how to determine whether you’re “on” a breakpoint or not, if the debugger is stopped (at a step). Note … Read more