将gdb添加到MinGW [英] Adding gdb to MinGW

查看:369
本文介绍了将gdb添加到MinGW的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我去过 http://sourceforge.net/project/showfiles.php ?group_id = 2435 ,下载了适用于MinGW 5.1.4的自动MinGW安装程序,同时还下载了GNU源代码级调试器发布候选版:GDB 6.8-3。然后我将MinGW基础工具安装到C:\ MinGW中。到目前为止没有问题。

然而,当我安装gdb调试器时,它有许多文件和文件夹与已安装的文件和文件夹名称相同,但文件不同已经安装的那些。例如C:\ MinGW \include\bfd.h是171 KB,但gdb-6.8-mingw-3\include\bfd.h是184 KB。



如何将gdb添加到MinGW而不破坏已安装的内容? (5.2.1)gdb的版本,位于项目文件页面一直为我工作。下载是一个独立的.exe,你不需要其他任何东西。



但是我打赌6.8包中的.exe也可以。我会尝试使用.exe,然后如果出现问题,请尝试从6.8包中提取其他文件。 (尽管这可能会导致MinGW安装的其他问题。)



更新:似乎有一个7.something版本。我没有彻底测试过它,但它似乎工作,即使使用gcc 3。


I've gone to http://sourceforge.net/project/showfiles.php?group_id=2435, downloaded the Automated MinGW Installer for MinGW 5.1.4 and at the same time the GNU Source-Level Debugger Release Candidate: GDB 6.8-3. I've then installed MinGW base tools into C:\MinGW. No problem so far.

However when I come to install the gdb debugger it has a lot of files and folders with the same names as some already installed but the files are different to those already installed. e.g C:\MinGW\include\bfd.h is 171 KB but gdb-6.8-mingw-3\include\bfd.h is 184 KB.

How do I add gdb to MinGW without breaking what's already installed?

解决方案

The Current Release (5.2.1) version of gdb at the project files page has always worked for me. The download is a stand-alone .exe, you don't need anything else.

But I'll bet the .exe in the 6.8 package will work, too. I'd try using just the .exe, and then if there are problems, try extracting the other files from the 6.8 package. (Though that may cause problems with the rest of the MinGW installation.)

Update: There seems to be a 7.something version. I haven't tested it thoroughly, but it seems to work, even with gcc 3.

这篇关于将gdb添加到MinGW的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆