使用 Eclipse CDT gdb 的 gui 包装器分析转储

Using Eclipse CDT gui wrapper for gdb to analyze a dump

我在 ubuntu 中有我的 C++ 应用程序的故障转储。我正在使用 gdb 分析转储。

我可以运行以下命令:

bt
frame #
info args
print *this

print *this 的输出不是很整齐。

我了解到您可以为 gdb 使用 Eclipse 的图形用户界面包装器 cdt。我试图找到一些信息如何做到这一点,但找不到关于如何做到这一点的非常明确的答案。

如何使用 eclipse cdt 包装器使用 gdb 分析转储?

How can I analyze the dump with gdb using eclipse cdt wrapper?

Eclipse CDT 中,您执行 C/C++ 事后调试器 会话。

  1. Download/installEclipse with C/C++支持运行
  2. 运行 菜单中选择 调试配置...
  3. 双击 C/C++ 事后调试器
  4. 填写表格并按“调试”。 注意:您不需要项目,可以留空。
  5. help 中的更多信息。

The output of the print *this is not very neat.

单独使用 Eclipse CDT 可能不会显着改变这一点。您可能需要 STL 漂亮打印来帮助支持这一点。

有关在 CDT 中进行设置的说明,请参阅 。