While debugging some code in gdb, I want to see which line will be executed if I say next or step.
- Of course I can say
l, but if I sayla couple times (and don’t remember how many times), thenldoes not print the line that will be executed. - I can also scroll back to the last time gdb stopped and see which line it was at, but that sometimes involve digging through a bunch of output.
I am wondering if I am missing a simple command in gdb which shows me the current line the debugger is stopped at?
It sounds like you want to run
GDBinEmacs(which will show you current file and mark the current line), inDDD, or intuimode.