GDB 查看版本信息

技巧

在向 GDB 官方或社区报告 bug、查阅文档确认当前版本是否支持某个特性时,都需要先弄清楚自己所使用的 GDB 版本。使用 gdb 时,如果想查看 gdb 版本信息,可以使用 show version 命令:

(gdb) show version
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 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-solaris2.10".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

参见 gdb手册。


   转载规则


《GDB 查看版本信息》 由 吴杭沉 采用 知识共享署名 4.0 国际许可协议 进行许可。
 上一篇
程序调试工具箱:GDB 入门与常用分析工具 程序调试工具箱:GDB 入门与常用分析工具
GDB 是 GNU 发布的、运行在 UNIX/Linux 下的命令行调试器,也是 Linux 下 C/C++ 程序员必不可少的工具。它的命令很多,但日常调试只需掌握其中约十个。本文先从一个完整的调试过程讲起,再延伸介绍 pstack、str
2021-02-24
下一篇 
GDB 系列导读:从入门到多线程调试的完整路径 GDB 系列导读:从入门到多线程调试的完整路径
这个系列把 GDB 相关的知识整理成了一条由浅入深的完整路径:从启动 gdb 的第一步开始,经过命令体系、数据查看,进入线程调试与 attach 场景,最后以死锁实战和多进程进阶收尾。全系列 13 篇,按发文时间顺序读即是推荐阅读顺序。 第
2021-02-06
  目录