From owner-freebsd-dtrace@FreeBSD.ORG Wed Sep 10 19:31:29 2014 Return-Path: Delivered-To: freebsd-dtrace@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 A985B8BF; Wed, 10 Sep 2014 19:31:29 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 62B3C1B8; Wed, 10 Sep 2014 19:31:28 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s8AJVKfu040365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Sep 2014 12:31:21 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s8AJVKC2040364; Wed, 10 Sep 2014 12:31:20 -0700 (PDT) (envelope-from jmg) Date: Wed, 10 Sep 2014 12:31:20 -0700 From: John-Mark Gurney To: Pedro Giffuni Subject: Re: WITH_CTF vs -g Message-ID: <20140910193120.GA82175@funkthat.com> References: <54108909.7050908@FreeBSD.org> <58B30723-19D6-40FA-97F7-206401C5D2A2@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58B30723-19D6-40FA-97F7-206401C5D2A2@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 10 Sep 2014 12:31:21 -0700 (PDT) Cc: freebsd-toolchain@freebsd.org, freebsd-dtrace@freebsd.org, Andriy Gapon X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2014 19:31:29 -0000 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.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."