gdb显示的是将要执行的行

gdb显示的是将要执行的行

Content #

We put a breakpoint at line 35 of the program, and then run the program. GDB executed lines 30 through 34, but line 35 has not executed yet.

This can be confusing since many people think that GDB displays the line of code that was last executed, when in fact, it shows which line of code is about to be executed.

From #