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库,目前被认为是实验性的。
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
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
......
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
在调试代码的过程中出现此错误,是由于 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.
修改方式:
将源码目录下的python模块拷贝到指定目录即可。
可以看出,应该放在/usr/local/share/gdb/python
gdb源码目录为
/home/linuxidc/linuxidc.com/gdb-8.3/gdb/python/lib/
看看,OK。
更多相关:
GDB 的详细介绍:请点这里
GDB的下载地址:请点这里