From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3378 invoked by alias); 21 May 2003 19:15:09 -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 3257 invoked from network); 21 May 2003 19:15:07 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 21 May 2003 19:15:07 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id A4E5D2B2F; Wed, 21 May 2003 15:15:00 -0400 (EDT) Message-ID: <3ECBD034.3080504@redhat.com> Date: Wed, 21 May 2003 19:15:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Buettner Cc: Daniel Jacobowitz , cgd@broadcom.com, gdb-patches@sources.redhat.com Subject: Re: [WIP/RFC] MIPS registers overhaul References: <1030517004052.ZM13153@localhost.localdomain> <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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00395.txt.bz2 > 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. Andrew