缺少单独的debuginfo

时间:2013-07-16 10:48:23

标签: gdb opensuse

我尝试使用gdb来使用coredump来调试代码,但我遇到了:

Missing separate debuginfo for /lib/libc.so.6
Try: zypper install -C "debuginfo(build-id)=c4b9060b36834391b7b73976d38302a7584ae40e"
Missing separate debuginfo for /lib/ld-linux.so.2
Try: zypper install -C "debuginfo(build-id)=39c1043d2fcf5b72a2199cfb765d020b1faeb863"
Missing separate debuginfo for
Try: zypper install -C "debuginfo(build-id)=753a47afb9757471dc4823893adf607eb014b82f"
Missing separate debuginfo for /lib/libc.so.6
Try: zypper install -C "debuginfo(build-id)=c4b9060b36834391b7b73976d38302a7584ae40e"
Missing separate debuginfo for /lib/ld-linux.so.2
Try: zypper install -C "debuginfo(build-id)=39c1043d2fcf5b72a2199cfb765d020b1faeb863"

然后我为glibc安装了debuginfo并将glibc更新到最新版本,我再次尝试gdb,它仍然有一个信息:

Missing separate debuginfo for 
Try: zypper install -C "debuginfo(build-id)=753a47afb9757471dc4823893adf607eb014b82f"

但它没有提到错过了哪一部分。

我的GDB版本是:

-> gdb --version
GNU gdb (GDB) SUSE (7.3-41.1.2)
Copyright (C) 2011 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 "i586-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

操作系统是:

Linux OpenSUSE-12.1

2 个答案:

答案 0 :(得分:2)

将这些存储库添加到Zypper存储库列表中:

sudo zypper ar -f -n "openSUSE-Debug" http://download.opensuse.org/debug/distribution/12.1/repo/oss/ repo-debug
sudo zypper ar -f -n "openSUSE-Update-Debug" http://download.opensuse.org/debug/update/12.1/ repo-debug-update

在此之后,刷新并升级存储库:

sudo zypper ref
sudo zypper dup

然后,如果有必要(您可能会收到一条建议运行zypper ps的消息)重启计算机并为gdb安装debuginfo:

sudo zypper in glibc-debuginfo

答案 1 :(得分:1)

添加这些回购:

http://download.opensuse.org/debug/distribution/XX/repo/oss/

http://download.opensuse.org/debug/update/XX/

其中XX是您的OpenSUSE版本号。

确保它们处于活动状态:

zypper lr

然后

sudo zypper in glibc-debuginfo