From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25210 invoked by alias); 2 Apr 2003 00:20:42 -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 25203 invoked from network); 2 Apr 2003 00:20:41 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 2 Apr 2003 00:20:41 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 190Vzd-00074T-00; Tue, 01 Apr 2003 18:20:42 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 190Vza-0004D3-00; Tue, 01 Apr 2003 19:20:38 -0500 Date: Wed, 02 Apr 2003 00:20:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: stupify MAX_REGISTER_{RAW,VIRTUAL}_SIZE Message-ID: <20030402002038.GA16136@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb@sources.redhat.com References: <3E8A2B34.3080504@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E8A2B34.3080504@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00015.txt.bz2 On Tue, Apr 01, 2003 at 07:13:40PM -0500, Andrew Cagney wrote: > Hmm, > > The architecture vector contains the two macros: > > MAX_REGISTER_RAW_SIZE > MAX_REGISTER_VIRTUAL_SIZE > > which provide small per-architecture upper bounds on a register. They > are used when allocating scratch buffers (typically using alloca()). > The regcache provides a successor - max_register_size(). > > I'm now wondering if it would be easier to simply define: > > enum { MAX_REGISTER_SIZE = 16 }; > > and then, if that ever proves to be too small, make it bigger. Just as > long as no one creates an architecture with >~2k registers .... Entirely in favor! I've got a port which supports 20, and we'll probably be seeing 32 in new platforms soon - but I don't think using a constant will get out of hand for a long time. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer