From owner-freebsd-arch@FreeBSD.ORG Wed Jun 23 01:10:56 2010 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 996371065670; Wed, 23 Jun 2010 01:10:56 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4C91C8FC1E; Wed, 23 Jun 2010 01:10:56 +0000 (UTC) Received: by iwn7 with SMTP id 7so6507171iwn.13 for ; Tue, 22 Jun 2010 18:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=KyPM9hXBMcMxccbHpObJEa8qd96ie15zLW4a9ScGsvo=; b=Z8cyMzrIV8olpAdHat7nLRgsU2t+nYVHr+ie6rIti6lD58C+kI2YDNi4ya5+GXAcw4 YLlIJ+tfGNA2+ZaFiz3DYYyKC5aIkRHJVh4hJJKJrN2JVTZMLQm+nS72vj5PySnAqIqh Y8+Z25hlpQlXFW/ZO1S5O9qAhqoe3ZLprNXs4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=tLZULvvRvIvx2M9Ty07GlXxcKYjnOlW6v+KbF0+sIH8TYyvXMo23Lm6vhmEzx9zPGa iuFKrMEY6Un0wAIiU8ZVH137sXh7GIzcilh6FVbjZnDPNBjKi7mII0slt7sNiwKFcL+T czRItXGy7nUZzDxNwc45AbEGoTo7m05dvCI4w= MIME-Version: 1.0 Received: by 10.231.196.151 with SMTP id eg23mr7401411ibb.179.1277255455242; Tue, 22 Jun 2010 18:10:55 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.231.117.201 with HTTP; Tue, 22 Jun 2010 18:10:54 -0700 (PDT) In-Reply-To: References: <20100617.143334.584432776655157077.imp@bsdimp.com> <20100618201737.T41916@delplex.bde.org> <1D395333-64E2-4B2D-9E90-B4958FBA6583@gmail.com> Date: Tue, 22 Jun 2010 18:10:54 -0700 X-Google-Sender-Auth: -Qe3bz-1sNBroCjEWTa5YpZbzUo Message-ID: From: Garrett Cooper To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: arch@freebsd.org Subject: Re: Time to stop stripping binaries? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2010 01:10:56 -0000 On Tue, Jun 22, 2010 at 5:08 PM, Adrian Chadd wrote: > On 23 June 2010 02:09, Garrett Cooper wrote: > >>> ISTR someone pointing out that there's a "magical" (ie, I don't >>> understand it) way to optionally have debugging symbols as extra >>> file(s), rather than having to ship extremely large shared libraries >>> by default. >> >> =A0 =A0See this link: >> http://old.nabble.com/-gcc--separate-debug-infos-td21591416.html . >> It's similar to what I've seen some internal groups do before in the >> past. > > People-who-know-the-build-system-well, how hard would it be to build > libraries with this option? > > People-who-know-binutils-and-gdb-and-relevant-libraries-well, what > magic needs to happen to teach programs about this? (eg gdb, gprof, > pmcstat, etc?) Speaking only for gdb, it's trivial from a user perspective to pick up the debug symbols: add-symbol-file where is 0 for the application. IIRC there are modifications that people have made to gdb to pick up debug symbols for libraries, but I'm a bit hazy here. HTH, -Garrett