From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1485 invoked by alias); 22 Nov 2002 15:33:18 -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 1477 invoked from network); 22 Nov 2002 15:33:16 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 22 Nov 2002 15:33:16 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7C30C3E4B; Fri, 22 Nov 2002 10:33:05 -0500 (EST) Message-ID: <3DDE4E31.4010807@redhat.com> Date: Fri, 22 Nov 2002 07:33:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andreas Schwab Cc: gdb-patches@sources.redhat.com Subject: Re: m68k_register_virtual_type References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00543.txt.bz2 Just FYI, > static struct type * > m68k_register_virtual_type (int regnum) > { > - if ((unsigned) regnum >= E_FPC_REGNUM) > + if (regnum == E_FPI_REGNUM) > return lookup_pointer_type (builtin_type_void); There are now: builtin_type_void_data_ptr builtin_type_void_code_ptr available. > + else if ((unsigned) regnum >= E_FPC_REGNUM) > + return builtin_type_int; builtin_type_int32 is better > else if ((unsigned) regnum >= FP0_REGNUM) > return builtin_type_long_double; > + else if (regnum == PS_REGNUM) > + return builtin_type_int Ditto. > else if ((unsigned) regnum >= A0_REGNUM) > return lookup_pointer_type (builtin_type_void); > else Andrew