This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: RFC --enable-debugging
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, libstdc++ at gcc dot gnu dot org
- Date: 02 Nov 2002 14:15:27 +0100
- Subject: Re: RFC --enable-debugging
- Organization: Integrable Solutions
- References: <u8hef89r7o.fsf@gromit.moeb> <20021029161117.A21995@disaster.jaj.com> <20021031174957.A15579@disaster.jaj.com> <20021031194119.548d7555.bkoz@redhat.com> <m365vgyb38.fsf@soliton.integrable-solutions.net> <20021031224637.A18172@disaster.jaj.com>
Phil Edwards <phil@jaj.com> writes:
| On Sat, Nov 02, 2002 at 03:11:39AM +0100, Gabriel Dos Reis wrote:
| > Benjamin Kosnik <bkoz@redhat.com> writes:
| >
| > | ...builds libstdc++.so twice. Once as-is, once for debugging. Debugging
| > | options can include CXXFLAGS="-g -O0", perhaps a change to use
| > | malloc-alloc allocators, and perhaps --enable-concept-checks.
| > |
| > | Installed in $prefix/lib/debug/
| > |
| > | Thoughts?
| >
| > How does a naive user (me) easily tell the compiler to look at the
| > "right" place without having to experience unspeakable headache? :-)
|
| Debian already does this. Setting LD_LIBRARY_PATH to search /usr/lib/debug
| before searching the usual places will pick up (among other things)
| a version of libstdc++.so with debugging symbols included.
Let me rephrase my question
1) Is there any automated way to have the compiler pick the debug
library when a program is linked with -g?
2) Does the compiler skip the debug version if -g is not given?
3) Not everyone can install under /usr/lib/debug nor even desirable
in all circumstance.
My questions aren't criticisms.
-- Gaby