From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Jmsef-0003sw-Q8 for mharc-grub-devel@gnu.org; Fri, 18 Apr 2008 11:37:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jmsee-0003s7-PR for grub-devel@gnu.org; Fri, 18 Apr 2008 11:37:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jmsed-0003qm-7F for grub-devel@gnu.org; Fri, 18 Apr 2008 11:37:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jmsec-0003qf-UL for grub-devel@gnu.org; Fri, 18 Apr 2008 11:37:34 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jmsec-0002fq-UE for grub-devel@gnu.org; Fri, 18 Apr 2008 11:37:35 -0400 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JmseO-0003wd-6M for grub-devel@gnu.org; Fri, 18 Apr 2008 17:37:21 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1Jmsdw-0001ne-31 for grub-devel@gnu.org; Fri, 18 Apr 2008 17:36:52 +0200 Date: Fri, 18 Apr 2008 17:36:52 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080418153652.GA6790@thorin> References: <1208212240.3971.48.camel@localhost.localdomain> <20080415133805.GG21548@thorin> <1208433201.770.43.camel@localhost.localdomain> <20080417201107.GB13794@thorin> <20080417222114.reel0vq6f40gsskc@webmail.spamcop.net> <20080418113259.GD26239@thorin> <20080418121356.GA27967@thorin> <1208531803.12403.13.camel@dv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1208531803.12403.13.camel@dv> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Make gdb debugging a bit less painful 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, 18 Apr 2008 15:37:37 -0000 On Fri, Apr 18, 2008 at 11:16:43AM -0400, Pavel Roskin wrote: > > On Fri, 2008-04-18 at 14:13 +0200, Robert Millan wrote: > > On Fri, Apr 18, 2008 at 01:32:59PM +0200, Robert Millan wrote: > > > - jmp EXT_C(cmain) > > > + jmp EXT_C(grub_main) > > > > Or maybe that should be a "call" instead.. > > Only if there is any chance of return, and we can handle it. Well, Lubomir suggested that you need that return address for gdb. Is that correct? > "exit" in open firmware based systems would probably mean returning > control to open firmware. Note that our ieee1275 exit is implemented via interrupt, which I believe has equivalent effect. We don't need the return address for that, in this case. > By the way, it would be nice to have "exit" in both grub for PC and > grub-emu, and not only in the rescue mode. "exit" on PC means returning > control to BIOS so it can try another boot device. "exit" in grub-emu > means exit, of course. I have to use "reboot" now (which should not > exit, but rather restart grub-emu, if it belongs to grub-emu at all) or > "rescue" followed by "exit". Agreed. -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)