资源简介
python 调试工具,win7环境下eclipse+mingw进行c/c++开发进行eclipse中gdb调试显示stl容器的内容,测试在eclipse4.6.1+mingw(gcc version 5.3.0),python2.7.12时有效
代码片段和文件信息
# Copyright (C) 2013-2014 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 gdb
# This small code snippet deals with problem of strings in Python 2.x
# and Python 3.x. Python 2.x has str and unicode classes which are
# sub-classes of basestring. In Python 3.x all strings are encoded
# and basestring has been removed.
try:
basestring
except NameError:
basestring = str
class frameDecorator(object):
“““Basic implementation of a frame Decorator“““
“““ This base frame decorator decorates a frame or another frame
decorator and provides convenience methods. If this object is
wrapping a frame decorator defer to that wrapped object‘s method
if it has one. This allows for frame decorators that have
sub-classed frameDecorator object but also wrap other frame
decorators on the same frame to correctly execute.
E.g
If the result of frame filters running means we have one gdb.frame
wrapped by multiple frame decorators all sub-classed from
frameDecorator the resulting hierarchy will be:
Decorator1
-- (wraps) Decorator2
-- (wraps) frameDecorator
-- (wraps) gdb.frame
In this case we have two frame decorators both of which are
sub-classed from frameDecorator. If Decorator1 just overrides the
‘function‘ method then all of the other methods are carried out
by the super-class frameDecorator. But Decorator2 may have
overriden other methods so frameDecorator will look at the
‘base‘ parameter and defer to that class‘s methods. And so on
down the chain.“““
# ‘base‘ can refer to a gdb.frame or another frame decorator. In
# the latter case the child class will have called the super
# method and _base will be an object conforming to the frame Filter
# class.
def __init__(self base):
self._base = base
@staticmethod
def _is_limited_frame(frame):
“““Internal utility to determine if the frame is special or
limited.“““
sal = frame.find_sal()
if (not sal.symtab or not sal.symtab.filename
or frame.type() == gdb.DUMMY_frame
or frame.type() == gdb.SIGTRAMP_frame):
return True
return False
def elided(self):
“““Return any elided frames that this class might be
wrapping or None.“““
if hasattr(self._
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 552660 2014-11-15 21:55 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x64\libexpat-1.dll
文件 1480450 2014-11-15 21:55 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x64\libiconv-2.dll
文件 1859 2008-07-29 06:28 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x64\Microsoft.VC90.CRT.manifest
文件 626688 2008-07-29 06:23 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x64\msvcr90.dll
文件 2987520 2014-11-15 21:55 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x64\python27.dll
文件 424417 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x86\libexpat-1.dll
文件 1288022 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x86\libiconv-2.dll
文件 369 2012-08-10 09:03 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x86\Microsoft.VC90.CRT.manifest
文件 653136 2012-11-14 10:12 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x86\msvcr90.dll
文件 2428928 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\bin_x86\python27.dll
文件 26824 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\command\explore.py
文件 16605 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\command\fr
文件 14474 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\command\pretty_printers.py
文件 2135 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\command\prompt.py
文件 4424 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\command\type_printers.py
文件 10164 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\command\xmethods.py
文件 694 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\command\__init__.py
文件 10392 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\fr
文件 1577 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\fr
文件 8031 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\fr
文件 2684 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\function\strfns.py
文件 692 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\function\__init__.py
文件 1386 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\printer\bound_registers.py
文件 687 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\printer\__init__.py
文件 10681 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\printing.py
文件 4210 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\prompt.py
文件 5421 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\types.py
文件 10448 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\xmethod.py
文件 3509 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\python\gdb\__init__.py
文件 13059 2014-11-15 14:18 python-2.7-gdb\opt\python-2.7-gdb-7.8.1\data-directory\syscalls\amd64-linux.xm
............此处省略2094个文件信息
相关资源
- NSGA II代码实现集合包含、讲解及 网络
- Python源码剖析-深度探索动态语言核心
- 算法图解-Python语言版本C/C++也可以看
- 酷Q二次开发c++python 混合编程说文件不
- Microsoft Visual C++ Build Tools
- python通过ctypes调用c\\c++编写的dll\\so库
- 深入浅出Python(中文版) pdf
- gcc.tar(gcc-4.8.5-39.el7.x86_64.rpm)
- python3.6.5安装包
- Geoprocessing-with-Python.pdf
- Scipy Tutorial(Scipy教程)
- MinGW编译环境,包含gcc、g++、gdb等编译
- C++ Primer 英文版
- OpenCV算法精解 基于Python与C++
- python版本推箱子(界面美化包含打包
- 《剑指Offer:名企面试官精讲典型编程
- python实现串口传文件调用PCOMM.dll Zm
- OpenCV算法精讲:基于Python与c++
- python扩展需要安装的VC++环境python2.x
- OpenCV算法精解-代码.rar
- 预编译好的python3.6+window10下的annoy包
- Python+wxpython邮件收发客户端
- 预编译好的python3.7+window10下的annoy包
- C语言、Python实现TF-IDF算法
- Windows下配置python_pcl全套资料
- casia语音情感识别SVM分类
- python37_d.lib
- 基于python实现巴特沃斯低通滤波
- Python3+Opencv343环境搭建 dll load failed问
- 引导滤波_Cpp_Python.rar
评论
共有 条评论