Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: Olivier Crete <tester@g.o>
Subject: Re: [gentoo-dev] fix binary debug support, part elevenity billion 1/2
Date: Fri, 20 Jan 2006 00:34:08
Message-Id: 200601191932.19192.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] fix binary debug support, part elevenity billion 1/2 by Olivier Crete
1 On Thursday 19 January 2006 18:17, Olivier Crete wrote:
2 > On Thu, 2006-19-01 at 17:56 -0500, Mike Frysinger wrote:
3 > > - if "debug-build" is in FEATURES, then the following happens:
4 > > * auto sets CFLAGS to DEBUG_CFLAGS, LDFLAGS to DEBUG_LDFLAGS, CXXFLAGS
5 > > to DEBUG_CXXFLAGS (and in the future, we can add more variables as the
6 > > need comes up)
7 >
8 > What about: CFLAGS="${CFLAGS} ${DEBUG_CFLAGS}" .. otherwise bugs that
9 > only appear after certain GCC optmisations may go away...
10
11 then we'll deal with that ... we're trying to debug bad code, not bad code
12 generation
13
14 > > - we will set sane debug defaults in the base profile:
15 > > * DEBUG_CFLAGS=DEBUG_CXXFLAGS="-O -g"
16 >
17 > I'd propose "-fno-omit-frame-pointer -ggdb" for x86/amd64 and "-g" for
18 > default...
19
20 why ? -fomit-frame-pointer is only used with -O whenever it doesnt interfere
21 with debugging ... in other words, -O on x86 will not imply
22 -fomit-framer-pointer
23
24 and as noted, x86_64 doesnt suck like x86, so this isnt an issue for amd64 :)
25 -mike
26 --
27 gentoo-dev@g.o mailing list