From owner-freebsd-current@FreeBSD.ORG Wed Oct 20 22:41:06 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CF1D16A4CE; Wed, 20 Oct 2004 22:41:06 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B912943D53; Wed, 20 Oct 2004 22:41:05 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i9KMf45G042336; Thu, 21 Oct 2004 01:41:04 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 90087-15; Thu, 21 Oct 2004 01:41:03 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i9KMetDF042326; Thu, 21 Oct 2004 01:40:58 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i9KMeXnH027198; Thu, 21 Oct 2004 01:40:33 +0300 (EEST) (envelope-from ru) Date: Thu, 21 Oct 2004 01:40:33 +0300 From: Ruslan Ermilov To: Maxim Sobolev Message-ID: <20041020224032.GA26958@ip.net.ua> References: <41767CF1.2020005@FreeBSD.org> <20041020.105839.100358845.imp@bsdimp.com> <20041020170907.GA1216@orion.daedalusnetworks.priv> <200410201913.42879.max@love2party.net> <20041020194547.GD2195@ip.net.ua> <4176C0C8.4060408@freebsd.org> <4176E329.9090500@portaone.com> <4176E71D.9090500@portaone.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: <4176E71D.9090500@portaone.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: Max Laier cc: freebsd-current@FreeBSD.ORG cc: Scott Long cc: freebsd-arch@FreeBSD.ORG Subject: Re: [Fwd: What do people think about not installing a stripped /kernel ?] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 22:41:06 -0000 --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 21, 2004 at 01:30:53AM +0300, Maxim Sobolev wrote: > Maxim Sobolev wrote: >=20 > >OK, I've just checked objcopy manpage and found that there is actually a= =20 > >better way which combines best properties of both approach. In modern=20 > >GNU toolchain it is possible to split executable and debugging info into= =20 > >two separate files, but put a reference into executable, so that you=20 > >don't have to worry about how to load debugging symbols: > > [...] > >I checked, this works like a charm with our current toolchain/gdb. This= =20 > >allows us to do the following clever trick WRT kernel debug: > > > >1. Compile kernel/modules with debugging symbols; > >2. Split out executable and debugging pieces for each module; > >3. Associate each executable file with appropriate debug file; > >4. Install executable into /boot/kernel as usually; > >5. Install real debugging into /var/something, put symlink to it into=20 > >/boot/kernel. > > > >By the way, this approach can be extended to be an option of buildworld= =20 > >as well! It can be good way to trade developers' time for some hdd=20 > >space, since with this option "on" you will always be able to debug=20 > >misbehaving application/library without the need to recompile/reinstall= =20 > >everything! >=20 > BTW, it also allows us to do create separate "debug" distribution for=20 > release CDs. So that one can do binary install and then add debugging=20 > symbols if necessary. >=20 Now go and hack kmod.mk and kern.post.mk, and I will go to bed. ;) Psycho! :-) Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBdulgqRfpzJluFF4RAhMRAJ9yWYa4HV7WMIEC5gx/S+6GNv/t+gCeLRA1 X+3x1D5l4gsUU89MPrBoK7M= =nql+ -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--