如何在GDB中运行之前的指令?
在这里我想问这个问题。当我调试程序时,有时我希望能够再次运行之前的指令。就像在 Microsoft Visual Studio 中一样,我们可以将位置指示器(记住黄色箭头)拖动到您要查找的上一条指令。
例如:
我的程序当前位于第 72 行,假设第 70 行与第 72 行所在的函数相同。现在我想再次重新运行第 70 行。有什么办法可以做到这一点吗?
谢谢。
Here I want to ask this question. When I am debugging a program, sometimes I wish I can run a previous instruction again. Like in Microsoft Visual Studio, we can drag the position indicator (remember the yellow arrow) to the previous instruction you want to locate.
For example:
My program is currently at line 72, and suppose line 70 is in the same function that line 72 sits in. Now I want to re-run line 70 again. Is there any way to do that?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(3)
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
使用 GDB
jump
命令。Use the GDB
jump
command.