LINUX下的GNU调试工具,GNU调试器 GDB 8.3 发布及安装更新,支持RISC-V与IPv6连接等

Joel Brobecker刚刚宣布了大型GDB 8.3功能版本。 GNU调试器的这一更新带来了许多改进和新功能,可以帮助开发人员。

GNU Debugger 8.3版本为RISC-V GNU / Linux和RISC-V FreeBSD带来原生配置,支持C-SKY CPU架构,支持OpenRISC GNU/Linux,支持CLI和TUI上的终端样式,实验支持编译 /注入C++源代码进入劣势,GDB/GDBserver最终支持IPv6连接,以及其他各种改进。

对C++代码的编译和注入的支持取决于GCC7或更新的libcp1.so库,目前被认为是实验性的。

e98116c20c8a53b239d0536cfbabe483.png

GDB 8.3 截图如上

总的来说,这是对这个常用的开源代码调试器的一个非常全面的功能更新。 那些想要了解更多关于GDB 8.3的人请查看其发布公告。

Ubuntu 18.04安装更新GDB 到 8.3 版本

linuxidc@linuxidc:~/linuxidc.com$ wget http://ftp.gnu.org/gnu/gdb/gdb-8.3.tar.xz

97da4a906f4baff156afac81c74335c0.png

linuxidc@linuxidc:~/linuxidc.com$ tar -xf gdb-8.3.tar.xz

linuxidc@linuxidc:~/linuxidc.com$ cd gdb-8.3/

linuxidc@linuxidc:~/linuxidc.com/gdb-8.3$ ./configure

checking build system type... x86_64-pc-linux-gnu

checking host system type... x86_64-pc-linux-gnu

checking target system type... x86_64-pc-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether ln works... yes

checking whether ln -s works... yes

checking for a sed that does not truncate output... /bin/sed

......

9afeffb3e6a451ab2187d6874d5e9506.png

linuxidc@linuxidc:~/linuxidc.com/gdb-8.3$ make

make[1]: 进入目录“/home/linuxidc/linuxidc.com/gdb-8.3”

Configuring in ./libiberty

configure: creating cache ./config.cache

checking whether to enable maintainer-specific portions of Makefiles... no

checking for makeinfo... /home/linuxidc/linuxidc.com/gdb-8.3/missing makeinfo --split-size=5000000

configure: WARNING:

*** Makeinfo is missing. Info documentation will not be built.

checking for perl... perl

checking build system type... x86_64-pc-linux-gnu

05ffa4e41a0eb331784022dcf53a3f18.png

在调试代码的过程中出现此错误,是由于 GDB 缺少 Python 组件而导致调试错误,解决步骤如下。

出现:

linuxidc@linuxidc:~/linuxidc.com/gdb-8.3$ gdb

Python Exception No module named gdb:

gdb: warning:

Could not load the Python gdb module from `/usr/local/share/gdb/python'.

Limited Python support is available from the _gdb module.

Suggest passing --data-directory=/path/to/gdb/data-directory.

2cca12750fce6434c4c534a3723a6d38.png

修改方式:

将源码目录下的python模块拷贝到指定目录即可。

可以看出,应该放在/usr/local/share/gdb/python

gdb源码目录为

/home/linuxidc/linuxidc.com/gdb-8.3/gdb/python/lib/

9b8746f32dff715f025fcf6b676a2913.png

看看,OK。

更多相关:

GDB 的详细介绍:请点这里

GDB的下载地址:请点这里

0b1331709591d260c1c78e86d0c51c18.png

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值