5

我尝试使用 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
4

2 回答 2

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

然后,如有必要(您可能会收到一条提示 run 的消息zypper ps)重新启动计算机并为 gdb 安装 debuginfo:

sudo zypper in glibc-debuginfo
于 2016-02-17T23:47:14.663 回答
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
于 2015-04-29T08:32:26.007 回答