From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GGbiw-0001Wp-3A for garchives@archives.gentoo.org; Fri, 25 Aug 2006 13:27:50 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7PDPjjW030135; Fri, 25 Aug 2006 13:25:45 GMT Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.227]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7PDNhI2031734 for ; Fri, 25 Aug 2006 13:23:44 GMT Received: by wx-out-0506.google.com with SMTP id r21so932526wxc for ; Fri, 25 Aug 2006 06:23:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UEb1AWoQw9MiSYkImI9eHWPw96uzI9q9kipm5bUQGI3qWgZzt6EN+Spuk3o2z21v+i8bkjf7TATiu5FXdsPUPMall/gGxuQriJUrg0VPX/4kju3WJlVfbrPzChngw5Inh9IW4RLaaU+6O5I1UjNa+FoUbZoRVsdP2eGjwE1Vw44= Received: by 10.70.109.4 with SMTP id h4mr4491026wxc; Fri, 25 Aug 2006 06:23:43 -0700 (PDT) Received: by 10.70.116.7 with HTTP; Fri, 25 Aug 2006 06:23:42 -0700 (PDT) Message-ID: <5cd9791d0608250623m238c98fcv83bc0fd7b2d191a@mail.gmail.com> Date: Fri, 25 Aug 2006 21:23:42 +0800 From: "fei huang" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Is there a way to debug /sbin/init process? In-Reply-To: <7573e9640608250244s2ffd8467v6cbf6553122c8e2f@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_109278_13542913.1156512222452" References: <5cd9791d0608240822u4d04cad3n72b0ea5640db3b64@mail.gmail.com> <200608250757.12990.ext-dirk.heinrichs@nokia.com> <5cd9791d0608250010i1aeb97dy75b9085487dc8104@mail.gmail.com> <200608251030.59044.shrdlu@unlimitedmail.org> <5cd9791d0608250212t1a201d45u334713792c91d412@mail.gmail.com> <7573e9640608250244s2ffd8467v6cbf6553122c8e2f@mail.gmail.com> X-Archives-Salt: d08f7d41-2d91-45dd-9da0-5f921ee1b8cf X-Archives-Hash: 165dfabf6c096d6e5e071c107c87e487 ------=_Part_109278_13542913.1156512222452 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/25/06, Richard Fish wrote: > > On 8/25/06, fei huang wrote: > > wonder why gentoo does not support debug flag on ALL packages, but just > to a > > small range of ebuilds? > > any good reason for that .? don't know. > > The debug use flag is normally (and IMO should only be) used for > optional debugging/logging systems that can be built-in to packages, > not for debug symbols like you get with CFLAGS=-g. It sometimes also > adds -g, but it is really more for the optional parts of packages that > can be included regardless of the CFLAGS. so, they are distinct concepts. To illustrate my point, USE=debug has the following effects on: > > * app-emulation/wine: enables the use of the WINE_DEBUG environment > variable to generate debug output. > * media-sound/alsa-driver: adds extra logging about the sound card > configuration and inner-workings of alsa to the system logs. > > -Richard > -- It does make sense.. thank you so much.. daniel gentoo-user@gentoo.org mailing list > > ------=_Part_109278_13542913.1156512222452 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 8/25/06, Richard Fish <bigfish@asmallpond.org> wrote:
On 8/25/06, fei huang <daniel.huangfei@gmail.com> wrote:
> wonder why gentoo does not support debug flag on ALL packages, but just to a
> small range of ebuilds?
> any good reason for that .?  don't know.

The debug use flag is normally (and IMO should only be) used for
optional debugging/logging systems that can be built-in to packages,
not for debug symbols like you get with CFLAGS=-g.  It sometimes also
adds -g, but it is really more for the optional parts of packages that
can be included regardless of the CFLAGS.

so, they are distinct concepts.

To illustrate my point, USE=debug has the following effects on:

* app-emulation/wine: enables the use of the WINE_DEBUG environment
variable to generate debug output.
* media-sound/alsa-driver: adds extra logging about the sound card
configuration and inner-workings of alsa to the system logs.

-Richard
--

It does make sense.. thank you so much..

daniel

gentoo-user@gentoo.org mailing list


------=_Part_109278_13542913.1156512222452-- -- gentoo-user@gentoo.org mailing list