如何将 gdb 添加到 cygwin?
如何将 gdb 添加到 cygwin?我已经从sourceforge下载了cygwin的gdb tar包。解压时文件较多,所以我将包中的gdb.exe文件粘贴到cygwin的bin文件夹中。但是,它不起作用。
How do I add gdb to cygwin? I have downloaded gdb tar package for cygwin from sourceforge. When extracting it there were many files, so I pasted the gdb.exe file from the package into the bin folder of cygwin. However, it's not working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当您第一次安装 Cygwin 时,您应该已经获得了一个安装程序。如果您丢失了它,可以从 Cygwin 网站获取它。再次运行并选择 gdb 进行安装。
When you installed Cygwin the first time, you should have been given a setup program. If you have lost it, you can get it from the Cygwin website. Run this again and select gdb for installation.
对于遇到此问题的其他人,我也遇到了同样的问题,并尝试重新运行 Cygwin 安装包,但找不到
gdb
包。看来我用的镜子缺少一些包!解决方案是使用“官方”Cygwin 镜像来访问完整的软件包库。
For anyone else who runs into this, I had the same issue and attempted to re-run the Cygwin installation package but couldn't find the
gdb
package.Looks like the mirror I used was missing some packages! Solution is to use an "official" Cygwin mirror to get access to the full library of packages.
安装 Cygwin (https://cygwin.com/) 时,必须选择 gdb 和 gdb -debuginfo 包用于安装。请参阅 gdb 所需的安装包,网址为 [https://cygwin.com/packages/summary/gdb-src.html]
When installing Cygwin (https://cygwin.com/), you have to select the gdb and gdb-debuginfo packages for installation. See required install packages for gdb at [https://cygwin.com/packages/summary/gdb-src.html]