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?
To see the current line the debugger stopped at, you can use frame command with no arguments. This achieves the same effect as update command. It works both in tui and command line mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With