安装最新版本GDB
wget http://mirrors.ustc.edu.cn/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.xztar -zxvf gcc-9.3.0.tar.xzwget http://mirrors.ustc.edu.cn/gnu/gdb/gdb-9.2.tar.xztar -zxvf gdb-9.2.tar.xzcd gdb-9.2mkdir buildcd build../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/binsudo make && make install
ldd **查看执行文件依赖哪些库:
$ ldd --helpUsage: ldd [OPTION]... FILE...--help print this help and exit--version print version information and exit-d, --data-relocs process data relocations-r, --function-relocs process data and function relocations-u, --unused print unused direct dependencies-v, --verbose print all informationFor bug reporting instructions, please see:<https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs>.
