eclipse 如何设置gdb调试器连接?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10198884/
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 18:02:24  来源:igfitidea点击:

How to set gdb debugger connection?

eclipsedebugginggdbeclipse-indigo

提问by Hymannad

The instructions hereshow how to create a debug configuration but seem to be based on a different version of eclipse. How is the gdb debugger connection (TCP/IP address and Port number) configured in eclipse-indigo? I see Network Connectionsin Edit Configuration -> Configure Workspace Settings -> General...but no way to add TCP/IP address and Port number.

此处的说明显示了如何创建调试配置,但似乎基于不同版本的 eclipse。eclipse-indigo中gdb调试器连接(TCP/IP地址和端口号)是如何配置的?我看到了Network ConnectionsEdit Configuration -> Configure Workspace Settings -> General...但是没有办法添加 TCP/IP 地址和端口号。

回答by Juan Mellado

Instructions are still mostly valid, I think.

我认为,说明在大多数情况下仍然有效。

  • "Run" menu => "Debug Configurations..." option

  • "C/C++ Attach to application" option => "New" contextual menu option

  • "Debugger" tab => Debugger: "gdbserver" option => "Connection" tab

  • “运行”菜单 =>“调试配置...”选项

  • “C/C++ 附加到应用程序”选项 =>“新建”上下文菜单选项

  • “调试器”选项卡 => 调试器:“gdbserver”选项 =>“连接”选项卡

gdbserver

数据库服务器