From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KR04P-0000yx-5a for mharc-grub-devel@gnu.org; Thu, 07 Aug 2008 03:38:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KR04N-0000yO-1m for grub-devel@gnu.org; Thu, 07 Aug 2008 03:37:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KR04K-0000x7-Ex for grub-devel@gnu.org; Thu, 07 Aug 2008 03:37:57 -0400 Received: from [199.232.76.173] (port=46125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR04K-0000x4-BK for grub-devel@gnu.org; Thu, 07 Aug 2008 03:37:56 -0400 Received: from moutng.kundenserver.de ([212.227.126.177]:52169) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KR04J-0004X5-MF for grub-devel@gnu.org; Thu, 07 Aug 2008 03:37:56 -0400 Received: from [85.180.7.94] (e180007094.adsl.alicedsl.de [85.180.7.94]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1KR03n1rJg-0001kL; Thu, 07 Aug 2008 09:37:23 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <20080805215402.GA4756@thorin> References: <20080805074229.3e5862c5@gibibit.com> <20080805201403.GD1113@thorin> <20080805135021.55c9a2e8@gibibit.com> <20080805215402.GA4756@thorin> Content-Type: text/plain Date: Thu, 07 Aug 2008 09:37:22 +0200 Message-Id: <1218094642.4021.7.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+LMpYA6OHaE1TjJ8SIPuDpATbcBVXXKT0rg+k mI4rcFWzJ5smYdvOBa0g4XxxcqrQXdYe7wFE7OF0ewJtLls0pP sI6bscOVzU4aaR0DeYaQ4OFx1nn/oR/ X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) Subject: Re: [PATCH][RFC] gdb support in GRUB build system X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 07:37:59 -0000 Am Dienstag, den 05.08.2008, 23:54 +0200 schrieb Robert Millan: > On Tue, Aug 05, 2008 at 01:50:21PM -0700, Colin D Bennett wrote: > > In that case, should --enable-debug be the default, or --disable-debug? > > I'd prefer to disable debug as default. What do others think? > Have it disabled by default. I don't think it's useful to have them for everyone i.e. the average user. What do they gain with it? If you want to debug real grub you need qemu/bochs and gdb isn't that easy (for the avera users) Ok maybe I think still more like a Windows guy and not a Linux one, but with Opensuse and Ubuntu I think Linux gets more attractive to people who aren't that experts as we are here on the list :) Why should we waste a bit of space by default for every Linux distribution? I doubt they all figure out that they can just disable it on creating there .rpm etc. And I doubt Robert is disabling this for the Debian build if it's by default enabled on upstream ;) For debugging it's always the best if you compile with -O0 too and this shouldn't really be the default. For the few people who need to debug real grub it shouldn't be too hard to just recompile it with `CFLAGS="-g3 -O0" ./configure --enable-debug' Having debug symbols in the userland tools could be maybe a bit useful for example in the case of the grub-probe segfault I experienced on my mdraid experiments.