While debugging some code in gdb, I want to see which line will be executed if I say next
or step
.
l
, but if I say l
a couple times (and don't remember how many times), then l
does not print the line that will be executed. 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 GDB
in Emacs
(which will show you current file and mark the current line), in DDD
, or in tui
mode.