From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Jakub Jelinek Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Fix sparc-*-linux register fetching/storing Date: Mon, 26 Nov 2001 09:08:00 -0000 Message-id: <3C0276F5.7040300@cygnus.com> References: <20011123154220.A562@sunsite.ms.mff.cuni.cz> <20011125020147.A32180@nevyn.them.org> <20011125113201.C4087@devserv.devel.redhat.com> X-SW-Source: 2001-11/msg00443.html > I don't understand how regcache_collect would help here, since the assertion > REGISTER_RAW_SIZE() == 4 would stay. That's just trading a dereference with > a memcpy to an int variable. Today, yes. Tomorrow, no. The underlying implementation is going to be changed. Can't do that when people assume it is a big global byte array :-( enjoy, Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11518 invoked by alias); 26 Nov 2001 17:08:06 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11496 invoked from network); 26 Nov 2001 17:08:05 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.147.211.196) by sourceware.cygnus.com with SMTP; 26 Nov 2001 17:08:05 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 27A713DBA; Mon, 26 Nov 2001 12:08:05 -0500 (EST) Message-ID: <3C0276F5.7040300@cygnus.com> Date: Mon, 12 Nov 2001 10:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.3) Gecko/20011020 X-Accept-Language: en-us MIME-Version: 1.0 To: Jakub Jelinek Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Fix sparc-*-linux register fetching/storing References: <20011123154220.A562@sunsite.ms.mff.cuni.cz> <20011125020147.A32180@nevyn.them.org> <20011125113201.C4087@devserv.devel.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00228.txt.bz2 Message-ID: <20011112100400.qDZkiQ7hvrN68Qd90RUldNz3UkhHMTx0bJJWFApqmgU@z> > I don't understand how regcache_collect would help here, since the assertion > REGISTER_RAW_SIZE() == 4 would stay. That's just trading a dereference with > a memcpy to an int variable. Today, yes. Tomorrow, no. The underlying implementation is going to be changed. Can't do that when people assume it is a big global byte array :-( enjoy, Andrew