Eclipse CDT / GDB - 打开核心转储?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16413123/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:27:40  来源:igfitidea点击:

Eclipse CDT / GDB - open core dump?

eclipsegdb

提问by Steve Lorimer

With Eclipse it is possible to run a process through gdb.

使用 Eclipse,可以通过 gdb 运行进程。

This gives us a pretty GUI which can be used to inspect the call stack, variable contents etc.

这为我们提供了一个漂亮的 GUI,可用于检查调用堆栈、变量内容等。

Is it possible to open a core dump in Eclipse and inspect it through gdb?

是否可以在 Eclipse 中打开核心转储并通过 gdb 检查它?

回答by scottt

After switching to the Debug perspective, select Run-> Debug Configurations...(scroll down if you don't see it) -> C/C++ Postmortem Debugger. Then fill in the C/C++ Applicationand Core filefields with your executable and coredump and hit the Debugbutton.

切换到 Debug 透视图后,选择Run-> Debug Configurations...(如果没有看到,请向下滚动)-> C/C++ Postmortem Debugger。然后用您的可执行文件核心转储填写C/C++ 应用程序核心文件字段,然后点击调试按钮。

Even though there is a logic to their menu organization, the Eclipse CDT developers sure don't make finding the most used operations easy.

即使他们的菜单组织有一个逻辑,Eclipse CDT 开发人员肯定不会让找到最常用的操作变得容易。