[英]gdb nexti command not displaying line of source code
I set a break in main then run the program (C code) but when I nexti all that is displayed is: 我在main中设置一个中断,然后运行程序(C代码),但是当我下次显示时,所有显示的是:
0x0stuff in main ()
0x0stuff in main ()
...
Instead of : 代替 :
0x0stuff for(i=0; i < 10; i++)
8 printf("Hello, world!\n");
How can I make gdp display the source line when using nexti? 使用nexti时如何使gdp显示源代码行?
nexti
stes through one machine instruction, not one line of source code. nexti
通过一条机器指令,而不是一行源代码。 You want step
or next
for a line of source code. 您需要step
或next
来获取一行源代码。 It is worth reading the documentation carefully to see the difference. 值得仔细阅读文档以了解区别。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.