Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Fh36g-0007KE-Fh for mharc-grub-devel@gnu.org; Fri, 19 May 2006 07:25:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fh36e-0007K4-Rs for grub-devel@gnu.org; Fri, 19 May 2006 07:25:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fh36c-0007Gr-2z for grub-devel@gnu.org; Fri, 19 May 2006 07:25:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fh36b-0007Gi-TF for grub-devel@gnu.org; Fri, 19 May 2006 07:25:17 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fh39u-00050h-K1 for grub-devel@gnu.org; Fri, 19 May 2006 07:28:42 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id 50ED83C827EBD; Fri, 19 May 2006 14:54:37 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id AB52B3C822FBC; Fri, 19 May 2006 14:54:35 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: Lubomir Kundrak , grub-devel@gnu.org Date: Fri, 19 May 2006 13:25:14 +0200 User-Agent: KMail/1.8.2 References: <20060512132007.GA88582@meta.morph.sk> <200605130638.26578.okuji@enbug.org> <20060518122702.GA60590@meta.morph.sk> In-Reply-To: <20060518122702.GA60590@meta.morph.sk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605191325.15043.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.499693, version=0.17.2 Cc: Subject: Re: Debugging GRUB2 with GDB and QEMU 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: Fri, 19 May 2006 11:25:21 -0000 On Thursday 18 May 2006 14:27, Lubomir Kundrak wrote: > On Sat, May 13, 2006 at 06:38:26AM +0200, Yoshinori K. Okuji wrote: > > Message-Id: <200605130638.26578.okuji@enbug.org> > > > > Great! > > > > I guess it is necessary to compile the binary with -O0 or -O1 to get a > > reasonable backtrace... I'd appreciate if you can write a HOWTO. :) > > On i386 GCC generates full stack frames even with -O optizations. > It only omits frame pointer on architectures on which it doesn't > interfere with debugging. The problem is not the frame pointers. With -Os, gcc inlines functions used only once. For example, grub_dl_add is eliminated in gcc 4.x. Okuji