From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Fghb0-0005l3-Pi for mharc-grub-devel@gnu.org; Thu, 18 May 2006 08:27:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fghaz-0005kx-A7 for grub-devel@gnu.org; Thu, 18 May 2006 08:27:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fghax-0005kR-S1 for grub-devel@gnu.org; Thu, 18 May 2006 08:27:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fghax-0005kO-JN for grub-devel@gnu.org; Thu, 18 May 2006 08:27:11 -0400 Received: from [147.175.55.175] (helo=meta.morph.sk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fghe2-00038r-V5 for grub-devel@gnu.org; Thu, 18 May 2006 08:30:23 -0400 Received: by meta.morph.sk (Postfix, from userid 1018) id ADF16736; Thu, 18 May 2006 14:27:02 +0200 (CEST) Date: Thu, 18 May 2006 14:27:02 +0200 From: Lubomir Kundrak To: grub-devel@gnu.org Message-ID: <20060518122702.GA60590@meta.morph.sk> Mail-Followup-To: Lubomir Kundrak , grub-devel@gnu.org References: <20060512132007.GA88582@meta.morph.sk> <200605130638.26578.okuji@enbug.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200605130638.26578.okuji@enbug.org> User-Agent: Mutt/1.4.2.1i 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: Thu, 18 May 2006 12:27:13 -0000 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. I started a small HOWTO recently, so here is it: [1]. Enjoy :o) [1] http://NetBSD.sk/~lkundrak/misc/grub2-gdb/howto.html > > Okuji Lubo -- o Lubomir Kundrak *O* , http://skosi.org/~lkundrak/ (_) SKOSI -- Slovak OpenSource Initiative