查看内核版本,查找对应的内核rpm文件

[root@localhost ~]#uname -rsp 
Linux 3.10.0-229.1.2.el7.x86_64 x86_64

debuginfo.centos.org 下载相应的rpm包,本机内核是3.10.0-229.1.2.el7.x86_64 x86_64 下载:

  • kernel-debuginfo-3.10.0-229.1.2.el7.x86_64.rpm 依赖下面的安装,所以先安装下面的
  • kernel-debuginfo-common-x86_64-3.10.0-229.1.2.el7.x86_64.rpm  先安装

安装rpm顺序:

rpm -ivh kernel-debuginfo-common-x86_64-3.10.0-229.1.2.el7.x86_64.rpm 
rpm -ivh kernel-debuginfo-3.10.0-229.1.2.el7.x86_64.rpm 
 
安装完毕,就有命令 debuginfo-install 了

有的需要配置yum CentOS-Debuginfo.repo ,我这里没有做更改。

使用debuginfo-install安装各种软件包的debug包,这样就可以进行内核调试了。debug的rpm下载位置在:http://debuginfo.centos.org/6/x86_64/

下载完,安装: sudo rpm -ivh mercurial-debuginfo-1.4-5.el6_9.x86_64.rpm

参考:

1、http://www.72zk.com/show/blog/20

2、https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/developer_guide/intro.debuginfo

相关文章:

  • 2021-12-31
  • 2021-12-13
  • 2022-01-04
  • 2021-09-23
  • 2021-08-04
  • 2021-06-25
  • 2021-09-25
  • 2021-06-10
猜你喜欢
  • 2022-02-01
  • 2022-12-23
  • 2021-09-21
  • 2021-04-13
  • 2021-12-12
  • 2021-09-24
相关资源
相似解决方案