资源简介
Sourcery G++ Lite有4中版本,其中EABI是针对底层也就是不包含任何系统的开发
Windows版本
代码片段和文件信息
# 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._
- 上一篇:fritzing软件版本0.9.4
- 下一篇:趣学CCNA 路由与交换
相关资源
- 4.4BSD-Lite2
- 精灵虚拟光驱(Daemon Tools Lite 10) v
- GeoLite2-mmdb.zip
- PotatsoLite2.4.0.ipa
- FET-Pro430-Lite v2.9-1(V2.x固件)
-
ESF Databa
se Migration Toolkit Pro 8.2.07破解 - MinGW安装包直接点击setup安装,跳过
- PDF拆分合并pdf9spliter.zip
- GeoLite2-City.zip
- GeoLiteCity.dat 新版
- GeoLiteCity-latest.zip
- Daemon Tools Lite
- GeoLite2-City_20200414.tar.gz
- ZYNQ PL扩展串口_使用UartliteIP核
- GeoIP.dat.gz和GeoLiteCity.dat.gz.rar
- LitePal.rar
- PhotoScore Lite
- X-Lite3.0 安装包 (带汉化).rar
- celite6.10
- D*Lite D Star Lite Unity2019.3.4 完整项目
- AXI4-Lite仿真样例-AXI-VIP.zip
- tensorflow lite 依赖包
- STM32CubeIDE移植华为LiteOS.zip
- h5模型转为.kmodel/.tflite/.pb文件
- LAS-AF-Lite_2.6.0 Leica莱卡激光扫描共聚焦
- Sourcery CodeBench Lite 2012.03-56 for ARM EAB
- DBFlow使用完整案例
- 基于flask框架连接数据库的图书管理系
- mingw-w64压缩包
- Leica莱卡激光扫描共聚焦显微镜图像处
评论
共有 条评论