【发布时间】:2013-01-12 23:02:57
【问题描述】:
list 命令打印一组行,但我需要一行,我所在的位置以及可能发生错误的位置。
【问题讨论】:
-
backtrace或where,甚至是info line或只是简单的bt(用于回溯)。 dirac.org/linux/gdb 获取 gdb 教程 -
btorbacktraceorwhereprint stack of function calls,forframeprint next line to execute. -
对于其他答案,请在此处查看相同的问题:GDB: How to check current line number during debug