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

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

问题描述

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

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.

但是,当我开始安装 gdb 调试器时,它有很多文件和文件夹,它们的名称与已安装的某些文件和文件夹的名称相同,但文件与已安装的文件和文件夹不同.例如 C:MinGWincludefd.h 是 171 KB,但 gdb-6.8-mingw-3includefd.h 是 184 KB.

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:MinGWincludefd.h is 171 KB but gdb-6.8-mingw-3includefd.h is 184 KB.

如何在不破坏已安装内容的情况下将 gdb 添加到 MinGW?

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

推荐答案

当前版本 (5.2.1) 版本的 gdb 在 项目文件页面一直对我有用.下载的是独立的.exe,不需要其他任何东西.

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.

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

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.)

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

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天全站免登陆