Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2010 18:10:54 -0700
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        arch@freebsd.org
Subject:   Re: Time to stop stripping binaries?
Message-ID:  <AANLkTilk5JNhVkE7gXE4zXZbJ_AdnR7rDDec5qXMm9EU@mail.gmail.com>
In-Reply-To: <AANLkTikXD-2ZKceXt5XbOdWtpa6jcyZVl7qRoROdWMno@mail.gmail.com>
References:  <20100617.143334.584432776655157077.imp@bsdimp.com> <20100618201737.T41916@delplex.bde.org> <1D395333-64E2-4B2D-9E90-B4958FBA6583@gmail.com> <AANLkTikZHGoC8Oy74Scssfm_QVFO-r3qkz4LIq3a6B97@mail.gmail.com> <AANLkTikny8qXkrrEVVwF0M6BoNPBl7Wu7W3MwPu2b_jc@mail.gmail.com> <AANLkTikXD-2ZKceXt5XbOdWtpa6jcyZVl7qRoROdWMno@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 22, 2010 at 5:08 PM, Adrian Chadd <adrian@freebsd.org> wrote:
> On 23 June 2010 02:09, Garrett Cooper <gcooper@freebsd.org> wrote:
>
>>> ISTR someone pointing out that there's a "magical" (ie, I don't
>>> understand it) way to optionally have debugging symbols as extra
>>> file(s), rather than having to ship extremely large shared libraries
>>> by default.
>>
>> =A0 =A0See this link:
>> http://old.nabble.com/-gcc--separate-debug-infos-td21591416.html .
>> It's similar to what I've seen some internal groups do before in the
>> past.
>
> People-who-know-the-build-system-well, how hard would it be to build
> libraries with this option?
>
> People-who-know-binutils-and-gdb-and-relevant-libraries-well, what
> magic needs to happen to teach programs about this? (eg gdb, gprof,
> pmcstat, etc?)

    Speaking only for gdb, it's trivial from a user perspective to
pick up the debug symbols:

add-symbol-file <debug-symbols> <addr>

    where <addr> is 0 for the application.
    IIRC there are modifications that people have made to gdb to pick
up debug symbols for libraries, but I'm a bit hazy here.
HTH,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTilk5JNhVkE7gXE4zXZbJ_AdnR7rDDec5qXMm9EU>