From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6931 invoked by alias); 2 May 2003 23:16:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6910 invoked from network); 2 May 2003 23:16:07 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 2 May 2003 23:16:07 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 486AC2B2F; Fri, 2 May 2003 19:16:05 -0400 (EDT) Message-ID: <3EB2FC35.6010603@redhat.com> Date: Fri, 02 May 2003 23:16: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: gdb@sources.redhat.com Subject: Re: register_offset_hack() vs REGISTER_BYTE() References: <1030502003824.ZM26690@localhost.localdomain> <3EB1C2C8.5080502@redhat.com> <1030502010944.ZM27038@localhost.localdomain> <3EB1CA26.5080508@redhat.com> <3EB2F084.6010203@redhat.com> <1030502225744.ZM30793@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00025.txt.bz2 > For MIPS register numbers in [0, NUM_REGS), I'm going to make > mips_register_virtual_type() always return a type whose size is the same as > that currently returned by mips_register_raw_size(). Yes!!! That should have always been that way. > I'll introduce pseudo > registers for those that actually need different virtual sizes. (I've > turned mips o32 floating point registers into pseudo registers already and > it seems to work...) Yep. > This'll allow me to eliminate the MIPS REGISTER_BYTE and REGISTER_RAW_SIZE > definitions. Plus some other stuff too. E.g, I've already gotten rid of > mips_register_convert_to_type() and mips_register_convert_from_type(). I > think mips_register_convert_to_virtual() and mips_register_convert_to_raw() > will end up going away too. Don't stop there. It should be possible to trim it down to something like: - register_type - num_regs - num_pseudo_regs - register_name (looking at the d10v I've a few more to eliminate). This means that a huge chunk of nastiness can finally be expunged from GDB. Ya! Andrew