我在 ubuntu 中有一个来自我的 c++ 应用程序的故障转储。我正在使用 gdb 来分析转储。
我可以运行以下命令:
bt
frame #
info args
print *this
print *this
的输出不是很整洁。我了解到您可以为 gdb 使用 gui 包装器 Eclipse cdt。我试图找到一些如何做到这一点的信息,但找不到关于如何做到这一点的非常明确的答案。
如何使用 eclipse cdt 包装器使用 gdb 分析转储?
最佳答案
How can I analyze the dump with gdb using eclipse cdt wrapper?
在 Eclipse CDT你做一个 C/C++ 事后调试器 session 。
The output of the print *this is not very neat.
单独使用 Eclipse CDT 可能不会显着改变这一点。您可能需要 STL pretty-print 来帮助支持这一点。
见 https://stackoverflow.com/a/33048311/2796832有关在 CDT 中进行设置的说明。
关于ubuntu - 使用 Eclipse CDT gui wrapper for gdb 分析转储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44556932/