python debugging symbols需要安装吗_如何为gdb安装python调试信息?

本文介绍了在尝试使用gdb调试Python脚本时遇到的(no debugging symbols found)错误,以及执行debuginfo-install命令后无法找到所需debuginfo包的问题。主要依赖的yum数据源为RHEL7.0 ISO和CentOS链接,但安装python-2.7.5-16.el7.x86_64及其依赖的debuginfo包失败。讨论了如何解决找不到debuginfo包以成功安装Python调试信息。
摘要由CSDN通过智能技术生成

我想使用gdb调试python脚本。启动gdb后,它输出:[root@localhost scripts]# gdb python

GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7

Copyright (C) 2013 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

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-redhat-linux-gnu".

For bug reporting instructions, please see:

...

Reading symbols from /usr/bin/python2.7...Reading symbols from /usr/bin/python2.7...(no debugging symbols found)..

.done.

(no debugging symbols found)...done.

Missing separate debuginfos, use: debuginfo-install python-2.7.5-16.el7.x86_64

根据它的提示,我执行debuginfo-install python-2.7.5-16.el7.x86_64命令

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值