c++ gdb 绑定源码_CN-GDB - Linux上基于GDB-7.11的BANG-C源代码级调试器

CAMBRICON CN-GDB

This is CN-GDB, the BANG-C source-level debugger on Linux, based on GDB-7.11, the GNU source-level debugger.

For more information about gdb, please refer to the README file in this folder or check the GDB home page at http://www.gnu.org/software/gdb .

HOW TO BUILD CN-GDB

cngdb dependence as follows:

from gdb-root/debian/control

# Packaging deps

cdbs (>= 0.4.90),

debhelper (>= 9),

lsb-release,

bzip2,

# Other tool deps

autoconf,

libtool,

gettext,

bison,

dejagnu,

flex | flex-old,

procps,

g++-multilib [i386 powerpc s390 sparc],

gcj-jdk,

mig [hurd-any],

# TeX[info] deps

texinfo (>= 4.7-2.2),

texlive-base,

# Libdev deps

libexpat1-dev, lib64expat1-dev [i386 powerpc s390 sparc],

libncurses5-dev, lib64ncurses5-dev [i386 powerpc s390 sparc],

libreadline-dev, lib64readline6-dev [i386 powerpc s390 sparc],

zlib1g-dev,

liblzma-dev,

libbabeltrace-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc ppc64 ppc64el s390x],

libbabeltrace-ctf-dev [amd64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc ppc64 ppc64el s390x],

python3-dev,

libkvm-dev [kfreebsd-any],

libunwind7-dev [ia64],

# gdb64

lib64z1-dev [i386 powerpc],

lib64expat1-dev [i386 powerpc],

# gdb-doc

texlive-latex-base, texlive-fonts-recommended, cm-super,

You can compile cngdb using the provided build script build.sh, The instructions are as follows:

cd ${gdb-root}

./build.sh

After compilation, executable cngdb will be in the path gdb-root/build/neuware/bin/cngdb

HOW TO USE CN-GDB

Nearly all standard GDB commands could be used both for debugging on CPU and MLU code. In addition to that, cngdb provides specific command families like cngdb info... to query MLU device states, cngdb focus ... to control debugger focus.

For more information please check cngdb user manual.

REPORT BUG

Send e-mail to compiler-devel@cambricon.com to report cngdb bug.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值