[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Why does gdb now give lots of warnings?
- From: Jan Kratochvil <jan kratochvil redhat com>
- To: Development discussions related to Fedora <fedora-devel-list redhat com>
- Cc: Neal Becker <ndbecker2 gmail com>
- Subject: Re: Why does gdb now give lots of warnings?
- Date: Fri, 4 Jan 2008 17:12:01 +0100
On Fri, 04 Jan 2008 16:57:20 +0100, Jesse Keating wrote:
> On Fri, 4 Jan 2008 10:49:15 -0500
> Matthew Miller <mattdm mattdm org> wrote:
>
> > I agree that that's annoying, but you can just enable the debuginfo
> > repo and then yum install the given missing filename. Yum will work
> > out which package provides it.
>
> You can also just use debuginfo-install <appname> and it will enable
> the repo for you and track down all the needed debuginfo packages.
$ ls -l /usr/lib/debug/.build-id/fa/841219472d35412ad631ad0f0fabb78e5c1957.debug
lrwxrwxrwx 1 root root 27 2007-10-21 15:58 /usr/lib/debug/.build-id/fa/841219472d35412ad631ad0f0fabb78e5c1957.debug -> ../../lib64/ld-2.7.so.debug*
tells the name of the already installed library missing its -debuginfo.
$ repoquery -qf /usr/lib/debug/.build-id/fa/841219472d35412ad631ad0f0fabb78e5c1957.debug
glibc-debuginfo-0:2.7-2.x86_64
tells the -debuginfo package name needing to be installed.
# yum install /usr/lib/debug/.build-id/fa/841219472d35412ad631ad0f0fabb78e5c1957.debug
installs the missing -debuginfo package.
The library name was omitted intentionally there as the printed lines are
already too long just to be able to provide the .debug filename required for
`yum install'.
People commonly try to debug with GDB without having the -debuginfo packages
installed so I expected some hint may be useful there.
`debuginfo-install <appname>' may not install the matching -debuginfo version,
there may be multiple simultaneous -debuginfo versions available and/or
installed in the future (F9?).
I am open for some more convenient interface - currently going to print also
the shared library name there. (GDB cannot print anything about rpms.)
Thanks,
Jan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]