From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15308 invoked by alias); 12 May 2002 18:31:59 -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 15298 invoked from network); 12 May 2002 18:31:57 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 12 May 2002 18:31:57 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 30D2D3E08; Sun, 12 May 2002 14:32:06 -0400 (EDT) Message-ID: <3CDEB525.1000906@cygnus.com> Date: Sun, 12 May 2002 11:31:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc1) Gecko/20020429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard.Earnshaw@arm.com Cc: gdb@sources.redhat.com Subject: Re: ARM and virtual/raw registers References: <200205121439.PAA00494@cam-mail2.cambridge.arm.com> <3CDE926B.7020508@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00130.txt.bz2 > If I had my way, it would read: > > static void > arm_register_read (struct gdbarch *gdbarch, struct pseudoreg *pseudo, char *buffer) > { > arm_pseudo_register_read (gdbarch, pseudo, buffer); > } PS: Checking my notes, I've previously used the term ``cooked'' to avoid confusion with the existing ``pseudo-reg'' framework. So the above would map a ``struct cookedreg'' onto one or more ``struct rawreg'' vis: > static void > arm_register_read (struct gdbarch *gdbarch, struct cookedreg *cooked, char *buffer) > { > arm_pseudo_register_read (gdbarch, cooked, buffer); > } The thought of having something like: struct cookedreg; int cookedreg2i (struct cookedreg *r) { return r - (struct cookedreg *)someaddress; }; et.al. To get strongly typed integers in C has also crossed my mind. Outch! :-) enjoy, Andrew