Subject: Re: MKDEBUGLIB builds broken (again)
To: Jachym Holecek <>
From: Bill Stouder-Studenmund <>
List: tech-toolchain
Date: 03/28/2007 17:21:42
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 28, 2007 at 01:16:41PM +0200, Jachym Holecek wrote:
> # Quentin Garnier 2007-03-28:
> > On Wed, Mar 28, 2007 at 12:13:17PM +0200, Jachym Holecek wrote:
> > > doing " distribution" with "MKDEBUGLIB=3Dyes" fails in checkf=
> > > as follows b/c the debug libraries are installed but not listed under
> > > distrib/sets. What's the right way to fix this?
> > >=20
> > >   1. Make <> not install ${lib}_g.a.
> > >=20
> > >   2. Teach distribution sets about debug libraries.
> > >=20
> > > I think (2) is right, but wanted to make sure before I do something.
> >=20
> > We're long due a debug set.  This could be the occasion to start it.
> I can give it an evening or two... Would there be something besides
> debuglibs to include?


gdb is gaining (gained?) the ability to cope with debug symbols that=20
aren't in the actual program. I believe this came with DWARF debugging. Or=
may come, depending on if we've flipped the switch.

The upshot is that we can build all applications as debug (gcc -g). Then=20
after we build the binary in the obj dir, we strip while installing. We=20
then also do something (I admit not knowing what) that splits out the=20
debugging symbols to a dSYM file.

It's kinda like stripping the binary, but instead of removing debug info,=
we leave only debug info.

We then install the debug info. I _think_ we install it next to the=20
program, but I'm not sure what all the typical behaviors are.

The debug info then is in the debug set. We may want one debug set per=20
normal set.

A cool consequence of this is that we could then generate cores from=20
production systems (boxes running stripped binaries) and still debug them=
with symbols. Just grab the corresponding debug sets for the symbols.

Take care,


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.3 (NetBSD)