Debugging symbols by default - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Debugging symbols by default
Date
Msg-id Pine.LNX.4.30.0204051717090.698-100000@peter.localdomain
Whole thread Raw
Responses Re: Debugging symbols by default  (Larry Rosenman <ler@lerctr.org>)
Re: Debugging symbols by default  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
We had discussed a while ago that it might be a good idea to compile with
debugging symbols by default, at least when using GCC.  Personally, I
think that that would be a good idea, for users and developers alike.

If we go with that, I'd like to implement a new target 'install-strip'
that strips the binaries while they are installed, as a compensation if
you will.  (It strips the libraries in intelligent ways, too.)

This could be a win-win situation.  Developers don't need to type
--enable-debug all the time, users don't need to recompile when we ask
them to trace a bug, and if you're pressed for disk space then
'install-strip' will save you even more space than simply omitting
debugging symbols.  (Or you can keep the unstripped binaries around
elsewhere for debugging -- the possibilities are endless ;-) )

Comments?

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Jon Grov
Date:
Subject: Re: Suggestion for optimization
Next
From: Larry Rosenman
Date:
Subject: Re: Debugging symbols by default