From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29271 invoked by alias); 22 May 2003 00:32:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29252 invoked from network); 22 May 2003 00:32:01 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 22 May 2003 00:32:01 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19Ie0T-0000os-00; Wed, 21 May 2003 19:32:29 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19Idzs-00044d-00; Wed, 21 May 2003 20:31:52 -0400 Date: Thu, 22 May 2003 00:32:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: Kevin Buettner , cgd@broadcom.com, gdb-patches@sources.redhat.com Subject: Re: [WIP/RFC] MIPS registers overhaul Message-ID: <20030522003151.GA15642@nevyn.them.org> Mail-Followup-To: Andrew Cagney , Kevin Buettner , cgd@broadcom.com, gdb-patches@sources.redhat.com References: <3ECA9587.4090407@redhat.com> <3ECB9C8F.1060706@redhat.com> <20030521154134.GA7667@nevyn.them.org> <3ECBA393.9020904@redhat.com> <20030521165816.GA8784@nevyn.them.org> <1030521183234.ZM31903@localhost.localdomain> <3ECBD034.3080504@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ECBD034.3080504@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg00418.txt.bz2 On Wed, May 21, 2003 at 03:15:00PM -0400, Andrew Cagney wrote: > >On May 21, 12:58pm, Daniel Jacobowitz wrote: > > > > > >>> From GDB's view point, the ISA is 64 bit. > >>> > >>> The fact that a specific remote debug agent choses to use 32 bit > >>> registers is a limitation of that debug agent / kernel. An embedded > >>> target, and I'm pretty sure IRIX 6.5, for instance, don't do that. > > > >> > >>No, from GDB's view point in this situation, the target ISA is _NOT_ 64 > >>bit. Nothing 64-bit is available, either to the inferior or to the > >>debugger. Period. > >> > >>I would be a little surprised if IRIX didn't work that way too, but I > >>don't have access to IRIX to poke around. > > > > > >I too would be surprised. I should think that SGI would want to > >ensure that legacy programs (i.e, those using the o32 ABI) behave the > >same when run on 64-bit hardware as they do when run on 32-bit > >hardware. One of the implications of this is that illegal > >instructions in the 32-bit ISA should continue to be illegal when run > >on the 64-bit hardware. > > Er, it's the same deal as for SPARC. If GDB is built against the 64 bit > debug interface, it can debug both 32 and 64 bit applications. This is > the debuggers view, not the program being run's view. But the point is that the debugger's view of a 32-bit application on MIPS is of a 32-bit ISA. That's all that's available. You get 32-bit registers from the kernel. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer