资源简介
MinGW部署压缩包,需要在解压后手动设置环境变量。详细教程参考我的文章https://blog.csdn.net/qq_36731677/article/details/54608772
代码片段和文件信息
# -*- python -*-
# Copyright (C) 2009-2016 Free Software Foundation Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not see .
import sys
import gdb
import os
import os.path
pythondir = ‘/mingw/share/gcc-6.3.0/python‘
libdir = ‘/mingw/lib/gcc/mingw32/6.3.0‘
# This file might be loaded when there is no current objfile. This
# can happen if the user loads it manually. In this case we don‘t
# update sys.path; instead we just hope the user managed to do that
# beforehand.
if gdb.current_objfile () is not None:
# Update module path. We want to find the relative path from libdir
# to pythondir and then we want to apply that relative path to the
# directory holding the objfile with which this file is associated.
# This preserves relocatability of the gcc tree.
# Do a simple normalization that removes duplicate separators.
pythondir = os.path.normpath (pythondir)
libdir = os.path.normpath (libdir)
prefix = os.path.commonprefix ([libdir pythondir])
# In some bizarre configuration we might have found a match in the
# middle of a directory name.
if prefix[-1] != ‘/‘:
prefix = os.path.dirname (prefix) + ‘/‘
# Strip off the prefix.
pythondir = pythondir[len (prefix):]
libdir = libdir[len (prefix):]
# Compute the “..“s needed to get from libdir to the prefix.
dotdots = (‘..‘ + os.sep) * len (libdir.split (os.sep))
objfile = gdb.current_objfile ().filename
dir_ = os.path.join (os.path.dirname (objfile) dotdots pythondir)
if not dir_ in sys.path:
sys.path.insert(0 dir_)
# Call a function as a plain import would not execute body of the included file
# on repeated reloads of this object file.
from libstdcxx.v6 import register_libstdcxx_printers
register_libstdcxx_printers(gdb.current_objfile())
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-05-09 20:36 MinGW\
目录 0 2018-05-09 20:39 MinGW\bin\
文件 966670 2017-05-22 18:18 MinGW\bin\addr2line.exe
文件 992782 2017-05-22 18:18 MinGW\bin\ar.exe
文件 1734158 2017-05-22 18:18 MinGW\bin\as.exe
文件 997902 2017-05-30 04:59 MinGW\bin\c++.exe
文件 955406 2017-05-22 18:18 MinGW\bin\c++filt.exe
文件 996366 2017-07-25 01:03 MinGW\bin\cpp.exe
文件 1024526 2017-05-22 18:18 MinGW\bin\dlltool.exe
文件 163342 2017-05-22 18:18 MinGW\bin\dllwrap.exe
文件 151054 2017-05-22 18:18 MinGW\bin\elfedit.exe
文件 997902 2017-05-30 04:59 MinGW\bin\g++.exe
文件 70670 2017-07-25 01:03 MinGW\bin\gcc-ar.exe
文件 70670 2017-07-25 01:03 MinGW\bin\gcc-nm.exe
文件 70670 2017-07-25 01:03 MinGW\bin\gcc-ranlib.exe
文件 995342 2017-07-25 01:03 MinGW\bin\gcc.exe
文件 596494 2017-07-25 01:03 MinGW\bin\gcov-tool.exe
文件 618510 2017-07-25 01:03 MinGW\bin\gcov.exe
文件 1024014 2017-05-22 18:18 MinGW\bin\gprof.exe
文件 1291278 2017-05-22 18:18 MinGW\bin\ld.bfd.exe
文件 1291278 2017-05-22 18:18 MinGW\bin\ld.exe
文件 24310 2017-05-30 05:01 MinGW\bin\libatomic-1.dll
文件 149207 2013-09-01 09:38 MinGW\bin\libcharset-1.dll
文件 938157 2017-05-30 05:00 MinGW\bin\libgcc_s_dw2-1.dll
文件 478960 2017-09-08 21:36 MinGW\bin\libgmp-10.dll
文件 156178 2017-05-30 05:01 MinGW\bin\libgomp-1.dll
文件 1408750 2013-09-01 09:39 MinGW\bin\libiconv-2.dll
文件 484613 2014-04-30 20:33 MinGW\bin\libintl-8.dll
文件 2116501 2017-05-30 06:02 MinGW\bin\libisl-15.dll
文件 168462 2017-12-07 04:09 MinGW\bin\libmingwex-0.dll
文件 108411 2017-05-26 20:39 MinGW\bin\libmpc-3.dll
............此处省略1738个文件信息
- 上一篇:untiy3D开发的小游戏坦克大战
- 下一篇:MK60数据手册
相关资源
- mingw-w64-build-3.6.7
- MinGW-5.0.2
- libssh2动态库
- mingw-w64-v7.0.0.tar.bz2
- mingw gdb-7.2
- qtribbon可用
- mingw Minimalist GNUfor Windows 程序
- opencv3.4.3 mingw32编译
- glibc-2.9绿色压缩版
- minidump_stackwalk 执行档
- MinGW 5.1.3
- libcurl.a(with zlib openssl libssh2) 含r
- MinGW32位(4.8.2版本)
- 最新版本7.1.0 MinGW For Windows
- opencv2410forMinGw
- OpenSceneGraph-3.4.0MinGW编译版
- OpenCV345_build_MinGW32bit
- 最新mingw5.1.6
- 编译器mingw4.4.0 Qt
- mingw-w64-gcc-4.9.2
- OpenCV 3.3.0&opencv;_contrib-3.3.0 编译成功后
-
基于Qt封装minibl
ink库-支持mingw和vc - qtcreator-gdb-7.4-MINGW32_NT-6.1-i686.tar
- qtcreator-gdb-7.4-MINGW32_NT-6.1-i686
- modelsim/questasim-gcc-4.5.0-mingw64编译器
- MinGW 64位 gcc 4.9.2
- MinGW(gcc版本 4.6.2)
- MinGW64离线安装包
- OpenCV 3.3_x86_minGW_world
- mingw编译的opencv库
评论
共有 条评论