From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6199 invoked by alias); 12 May 2002 14:40:20 -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 6191 invoked from network); 12 May 2002 14:40:19 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 12 May 2002 14:40:19 -0000 Received: by fw-cam.cambridge.arm.com; id PAA13029; Sun, 12 May 2002 15:40:18 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma012906; Sun, 12 May 02 15:39:44 +0100 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [172.16.1.91]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id PAA28152; Sun, 12 May 2002 15:39:43 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id PAA00494; Sun, 12 May 2002 15:39:43 +0100 (BST) Message-Id: <200205121439.PAA00494@cam-mail2.cambridge.arm.com> To: Andrew Cagney cc: Richard.Earnshaw@arm.com, gdb@sources.redhat.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: ARM and virtual/raw registers In-reply-to: Your message of "Sun, 12 May 2002 15:10:32 BST." <200205121410.PAA28889@cam-mail2.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 12 May 2002 07:40:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00122.txt.bz2 rearnsha@arm.com said: > See the code below (which is very much a work-in-progress..., so > don't even expect it to compile ;-) Of course, there was a major flaw in the WIP code I just posted, that confuses what I was talking about in a significant way. The code for arm_register_read, should be: static void arm_register_read (struct gdbarch *gdbarch, int regno, char *buffer) { if (arm_register_info[regno].regcache != ARM_PHYS_NONE) /* Recover the register directly from the cache. */ regcache_read (arm_register_info[regno].regcache, buffer); else arm_pseudo_register_read (gdbarch, regno, buffer); } R.