working with split debug files and sectionless ELFs

Mike Frysinger vapier@gentoo.org
Fri Oct 14 17:08:00 GMT 2011


On Friday 14 October 2011 12:25:31 Jan Kratochvil wrote:
> On Fri, 14 Oct 2011 17:49:24 +0200, Jan Kratochvil wrote:
> > Using the ".debug" extension is too slow as the file needs to be
> > checksummed first.  One should use /usr/lib/debug/.build-id/ instead. 
> > Still the argument applies even /usr/lib/debug/.build-id/ is skipped
> > without .debug_link.  But for /usr/lib/debug/.build-id/ you do not need
> > to assume any ".debug" suffix.
> 
> That's not true - one can check just the build-id note even if one finds it
> by the ".debug" suffix; just GDB currently does not do so.  Although I do
> not think it is useful in any way - if build-id is already present it can
> be used for the filename as it prevents name clashes during multiple
> versions installed, moved files etc.

build-id is a section.  my ELF has no sections.  i'm back where i started :).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb/attachments/20111014/cb26f7a1/attachment.sig>


More information about the Gdb mailing list