现在gdb退出了最小化的gdb安装包,依赖的库变少了。gdb-minimal-16.3-2.el9.x86_64。方便了开发者使用,不用再自己单独build gdb了。
URL:https://gnu.org/software/gdb/Summary:A GNU source-level debuggerforC,C++,Fortran,Go and otherlanguages(minimal version)Description:GDB,the GNU debugger,allows you to debug programs written in C,C++,Fortran,Go,and other languages,by executing them in a controlled fashion and printing their data.当然功能也变少了,比如C++ map类型数据的输出就会受到限制。但是是方便了,非必要这些功能的问题的debug。
如果要安装正式的gdb需要安装以下几个包:
boost-regex-1.75.0-13.el9_7.x86_64.rpm source-highlight-3.1.9-12.el9.x86_64.rpm libipt-2.0.4-5.el9.x86_64.rpm libbabeltrace-1.5.8-10.el9.x86_64.rpm gdb-headless-16.3-2.el9.x86_64.rpm gdb-16.3-2.el9.x86_64.rpm