gdb 要求继续/退出?
我是 GDB 新手,用于调试我的程序(C++)的问题。我使用 gdb 查找回溯,然后打印帧信息。在其中一次打印期间,假设命令类似于:
1) frame 2
2) print *this
在 print 调用的输出之间,我收到以下行:
---Type
这是 gdb 所期望的吗?我们应该继续传达该信息,还是它意味着什么?
注意:我没有设置任何断点或任何东西,所以没有期待任何消息。
I am new to GDB, using to debug an issue with my program(C++). I used gdb to find the backtrace and then print frames information. During one of the print, let's say the command is something like:
1) frame 2
2) print *this
In between the output of the print call, I am getting the following line:
---Type <return> to continue, or q <return> to quit---
Is this expected from the gdb? We should just continue on that message or it means something?
Note: I didn't set any breakpoint or anything, so didn't expect any message.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当要打印的内容太多而无法容纳当前缓冲区时,gdb 将在达到限制后暂停。如果按 Enter 键,它将继续打印。
我假设
this
指向一个包含大量“内容”的对象,因此您收到此消息是完全正常的。只需按住回车键,直到看到您要查找的信息或直到没有更多内容可打印!(换句话说,这里没有触发断点或任何类似的事情,并且被调试程序的控制流没有任何反应。)
When there is too much to print to fit inside the current buffer, gdb will pause after it's hit the limit. If you press enter, it'll continue printing.
I assume
this
points to an object that has a lot of "stuff" in it, so it's perfectly normal that you get this message. Just keep pressing return until you see the information you're looking for or until there is nothing more to print!(In other words, there is no breakpoint or anything of the sort getting triggered here and nothing happens to the control flow of the debugged program.)