From owner-freebsd-toolchain@FreeBSD.ORG Thu Sep 11 15:07:33 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2618CD0D; Thu, 11 Sep 2014 15:07:33 +0000 (UTC) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC6A59AC; Thu, 11 Sep 2014 15:07:32 +0000 (UTC) Received: from [96.232.17.88] (port=62402 helo=[10.189.221.171]) by vps.hungerhost.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from ) id 1XS5y6-0007oL-V1; Thu, 11 Sep 2014 11:07:31 -0400 From: "George Neville-Neil" To: "John-Mark Gurney" Subject: Re: WITH_CTF vs -g Date: Thu, 11 Sep 2014 11:07:16 -0400 Message-ID: <4227AECE-CD12-4C1E-B610-8BE81E6DBF0D@neville-neil.com> In-Reply-To: <20140910193120.GA82175@funkthat.com> References: <54108909.7050908@FreeBSD.org> <58B30723-19D6-40FA-97F7-206401C5D2A2@freebsd.org> <20140910193120.GA82175@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Mailer: MailMate (1.8r4469) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com Cc: Pedro Giffuni , Andriy Gapon , freebsd-dtrace@freebsd.org, freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2014 15:07:33 -0000 On 10 Sep 2014, at 15:31, John-Mark Gurney wrote: > Pedro Giffuni wrote this message on Wed, Sep 10, 2014 at 13:45 -0500: >> Hi Andriy; >> >> Il giorno 10/set/2014, alle ore 12:23, Andriy Gapon >> ha scritto: >> >>> >>> In my opinion WITH_CTF should imply -g in CFLAGS otherwise, as far >>> as I can see, >>> there is nothing to generate CTF data from. Forcing an end-user to >>> remember to >>> additionally pass -g is not nice. >>> >> >> My understanding is that CTF is meant to be a debugging format >> independent of DWARF, >> so it should be especially useful for the cases where there is no >> debugging information. > > Except that the CTF data is generated from the DWARF data... Hence > why you need to compile w/ -g... ctfconvert uses the DWARF data to > make the CTF data... > >> Just like Illumos, we haven?t really made much (or any) use of CTF >> outside the kernel >> but now that is an option: >> >> http://dtrace.org/blogs/rm/2013/11/14/userland-ctf-in-dtrace/ >> >> >>> Also, I think that we can always have -g in CTFFLAGS, because the >>> stripping step >>> takes care of the original DWARF data in any case. But I am not >>> 100% sure about >>> this. >>> >> >>> What do you think? >> >> >> BTW, it would be nice to see what we can take from the CTF/DDB GSoC >> [1]. I understand >> the BSD-licensed CTF library has advanced greatly but still needs >> more work. > > Yeh, I need to look at this more too as there are somethings I would > like to do w/ CTF that I can't because the library we have doesn't > export all the data.. > And on the main topic, yes, one should imply the other. Go for it. Best, George