From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1EzkEC-000157-0o for garchives@archives.gentoo.org; Fri, 20 Jan 2006 00:34:08 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0K0XPOD016625; Fri, 20 Jan 2006 00:33:25 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k0K0UJ8J000552 for ; Fri, 20 Jan 2006 00:30:19 GMT Received: from localhost ([127.0.0.1] helo=home.wh0rd.org) by smtp.gentoo.org with esmtp (Exim 4.54) id 1EzkAU-0004hm-Pa for gentoo-dev@lists.gentoo.org; Fri, 20 Jan 2006 00:30:18 +0000 Received: (qmail 13736 invoked from network); 19 Jan 2006 19:24:57 -0500 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 19 Jan 2006 19:24:57 -0500 From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] fix binary debug support, part elevenity billion 1/2 Date: Thu, 19 Jan 2006 19:32:19 -0500 User-Agent: KMail/1.9 Cc: Olivier Crete References: <200601150111.54995.vapier@gentoo.org> <200601191756.47460.vapier@gentoo.org> <1137712632.13555.9.camel@cocagne.max-t.internal> In-Reply-To: <1137712632.13555.9.camel@cocagne.max-t.internal> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601191932.19192.vapier@gentoo.org> X-Archives-Salt: 67b13b21-3287-49b7-adfc-5f9311d2c03f X-Archives-Hash: 89d03f8bddf8fe365e8c0fb5282d1867 On Thursday 19 January 2006 18:17, Olivier Crete wrote: > On Thu, 2006-19-01 at 17:56 -0500, Mike Frysinger wrote: > > - if "debug-build" is in FEATURES, then the following happens: > > * auto sets CFLAGS to DEBUG_CFLAGS, LDFLAGS to DEBUG_LDFLAGS, CXXFLAGS > > to DEBUG_CXXFLAGS (and in the future, we can add more variables as the > > need comes up) > > What about: CFLAGS="${CFLAGS} ${DEBUG_CFLAGS}" .. otherwise bugs that > only appear after certain GCC optmisations may go away... then we'll deal with that ... we're trying to debug bad code, not bad code generation > > - we will set sane debug defaults in the base profile: > > * DEBUG_CFLAGS=DEBUG_CXXFLAGS="-O -g" > > I'd propose "-fno-omit-frame-pointer -ggdb" for x86/amd64 and "-g" for > default... why ? -fomit-frame-pointer is only used with -O whenever it doesnt interfere with debugging ... in other words, -O on x86 will not imply -fomit-framer-pointer and as noted, x86_64 doesnt suck like x86, so this isnt an issue for amd64 :) -mike -- gentoo-dev@gentoo.org mailing list