支持在Linux环境与Windows环境进行应用工程调试,并具备远程调试的功能。
以下步骤仅供参考,具体安装步骤请参见GDB官方文档。
若环境中未安装GDB,则需要安装GDB,可通过包管理(如apt-get install gdb、yum install gdb)进行安装。
如无法使用包管理安装GDB,则需通过源码编译方式安装GDB,操作步骤如下:
tar -zxvf gdb-8.1.1.tar.gz
cd gdb-8.1.1 ./configure --host=aarch64-linux-gnu --prefix=/home/install/gdb
make -j8 make install
export PATH=/home/install/gdb/bin:$PATH
gdb --version
如出现类似如下回显,表明安装成功。
GNU gdb (GDB) 8.1.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details.