资源简介
arm-linux-gcc 交叉编译器 arm开发必备,Linux交叉编译器arm-cortex_a8-linux-gnueabi-4.7.3.tar.bz2
代码片段和文件信息
# -*- python -*-
# Copyright (C) 2009 2010 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 = ‘/opt/arm-cortex_a8-linux-gnueabi-4.7.3/share/gcc-4.7.3/python‘
libdir = ‘/opt/arm-cortex_a8-linux-gnueabi-4.7.3/arm-cortex_a8-linux-gnueabi/lib‘
# 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_)
# Load the pretty-printers.
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (gdb.current_objfile ())
- 上一篇:超实用的微信小程序开发的商城系统源码
- 下一篇:深入浅出数字信号处理pdf高清完整版
相关资源
- 基于Linux系统的音乐播放器
- gcc-4.8.1(卷一
- Keil uVision4MDK4ARM使用帮助中文完整版
- arm-linux-gcc-4.4.3
- Linux命令行与shell脚本编程大全 第3版
- Linux命令行与shell脚本编程大全.第3版
- AAE考试必看书籍
- Macromedia Fireworks MX for Linux
- understanding unix/linux programming 英文版
- LDD3英文版PDF
- iNode_Linux_64
- Linux是使用CAJViewer
- 2017鸟哥的Linux私房菜——基础学习篇
- Linux服务器实验二
- 基于linux QT开发的万年历程序
- UNIXLINUX应用.编程与系统管理(第3版)
- ffmpeg-git-64bit-static.tar.xz
- The Linux Programming Interface 中英文版 高
- modelsim/questasim-gcc-4.5.0-mingw64编译器
- 鸟哥的Linux私房菜-基础篇.第四版.pd
- 卡巴斯基linux版本安装方法
- Linux C 编程 程序员书库 李玉波
- linux gcc离线依赖安装包
- RTL8189ES_linux_v5.3.3.1_27418.20180502.zip
- 两个版本的GBDTGBRT源代码
- MinGW 64位 gcc 4.9.2
- myMp3_alin.zip
- Linux高性能服务器编程高清PDF+项目源
- binutils-2.25.1.tar.gz
- BPF Performance Tools - Brendan Gregg.rar
评论
共有 条评论