Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 May 2007 12:32:50 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Alexander Nedotsukov <bland@FreeBSD.org>
Cc:        ports@FreeBSD.org, Thomas Zander <thomas.e.zander@googlemail.com>
Subject:   Re: Undefine WITH_DEBUG?
Message-ID:  <4638BD32.9040903@mac.com>
In-Reply-To: <46385BB2.8040302@FreeBSD.org>
References:  <786602c60705020154k74b23dbkae585bf01a867f92@mail.gmail.com> <46385BB2.8040302@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Nedotsukov wrote:
> Thomas Zander wrote:
[ ... ]
>> Is there an elegant solution to circumvent this and undefine WITH_DEBUG?

> I think you need to add DEBUG_FLAGS="-g -O2 -fomit-frame-pointer".

On some platforms, you'll need to get rid of -fomit-frame-pointer to have 
usable stack frames in the output executable for the debugger to use. 
Depending on the code and the bug in question, it might be easier to see 
what's going on using only "-g" or "-g -O"...

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4638BD32.9040903>