曲径通幽论坛

 找回密码
 立即注册
搜索
查看: 4660|回复: 0
打印 上一主题 下一主题

解决GDB调试中缺失 glibc-debuginfo 的错误提示

[复制链接]

4918

主题

5880

帖子

3万

积分

GROAD

曲径通幽,安觅芳踪。

Rank: 6Rank: 6

积分
34395
跳转到指定楼层
楼主
发表于 2012-11-15 10:33:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Linux 发行版:OpenSuse 12.2

在用 gdb 调试程序时,发现
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.15-22.6.4.i686
这样的错误提示。

实际上,别的发行版也可能类似发现,记得在 Fedora 上也曾遇见。这是因为没有安装 glibc-debuginfo 这个包,而该包又不在正式的默认源中,因此可按下面步骤进行安装:
beyes:/home/beyes # zypper modifyrepo --enable repo-debug
Repository 'repo-debug' has been successfully enabled.
beyes:/home/beyes # zypper refresh
Retrieving repository 'openSUSE-12.2-Debug' metadata .....................................................[done]
Building repository 'openSUSE-12.2-Debug' cache ..........................................................[done]
Repository 'openSUSE-12.2-Non-Oss' is up to date.
Repository 'openSUSE-12.2-Oss' is up to date.
Repository 'openSUSE-12.2-Update' is up to date.
Repository 'openSUSE-12.2-Update-Non-Oss' is up to date.
All repositories have been refreshed.
beyes:/home/beyes # zypper install glibc-debuginfo
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  glibc-debuginfo

1 new package to install.
Overall download size: 5.5 MiB. After the operation, additional 25.6 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package glibc-debuginfo-2.15-22.6.4.i686                        (1/1),   5.5 MiB ( 25.6 MiB unpacked)
Retrieving: glibc-debuginfo-2.15-22.6.4.i686.rpm ...........................................[done (240.5 KiB/s)]
Installing: glibc-debuginfo-2.15-22.6.4 ..................................................................[done]

安装完后,再次调试时就不会出现该上面的错误提示。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|曲径通幽 ( 琼ICP备11001422号-1|公安备案:46900502000207 )

GMT+8, 2025-5-4 15:46 , Processed in 0.059934 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表