资源简介
gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz是由 Linaro 公司基于GCC推出的的ARM交叉编译工具。可用于交叉编译32-bit Armv7 Cortex-A, hard-float, little-endian目标中的裸机程序、u-boot、Linux kernel、filesystem和App应用程序。gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz交叉编译器必须安装在64为主机上,才能编译目标代码。
代码片段和文件信息
# -*- 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 = ‘/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/share/gcc-6.3.1/python‘
libdir = ‘/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/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_)
# 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())
相关资源
- doneex xcell compiler 2.1.2.9绿色汉化版(
- MinGW-5.0.2
- AVR_GCC程序设计基础
- 山东大学编译原理PL/0语言 compiler实验
- GLD无驱写锁S4 11-26-优化 GQI2021 GJG2021
- 广联达写锁带广材.zip
- Wind River Diab Compiler for PowerPC
- Design_compiler经典教程
- 龙书《编译原理》(Compilers:Principle
- Writing A Compiler In Go.pdf
- DFT Compiler Scan User Guide Version E-2010.12
- libiconv-1.14-sol10-x86-local.gz
- gcc-4.9.0依赖包
- Gcc internals中文版
- synopsys公司的Design Compiler license生成工
- gcc-3.4-ubuntu.tar.gz
- GNU GCC编译器手册
- gcc-4.9.3 安装依赖组件 (以此为准)
- 综合与Design Compiler
- Design Compiler student guide-学习手册
- mingw Minimalist GNUfor Windows 程序
- GNU MAKE源码
- delphi反编译工具 Decompiler v1.1.0.194
- Advanced Compiler Design and Implementation (高
- gcc-g++-4.4.2.tar.gz
- gcc-3.4 ubuntu安装包
- Design Compiler入门教程
- Design Compiler® User Guide Version O-2018.06
- Compiler Construction: Principles and Practice
- Intel_Visual_Fortran_Compiler10.1破解文件
评论
共有 条评论