From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2385 invoked by alias); 13 May 2002 13:18:18 -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 2351 invoked from network); 13 May 2002 13:18:16 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 13 May 2002 13:18:16 -0000 Received: by fw-cam.cambridge.arm.com; id OAA05631; Mon, 13 May 2002 14:18:10 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma005019; Mon, 13 May 02 14:17:35 +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 OAA04313; Mon, 13 May 2002 14:17:35 +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 OAA03301; Mon, 13 May 2002 14:17:34 +0100 (BST) Message-Id: <200205131317.OAA03301@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 "Mon, 13 May 2002 09:13:23 EDT." <3CDFBBF3.7080700@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 May 2002 06:18:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00141.txt.bz2 > > > > OK, I'm trying this general approach. One major failure, unfortunately. > > > > The remote-sim code has: > > > > else if (REGISTER_NAME (regno) != NULL > > && *REGISTER_NAME (regno) != '\0') > > { > > char buf[MAX_REGISTER_RAW_SIZE]; > > int nr_bytes; > > if (REGISTER_SIM_REGNO (regno) >= 0) > > nr_bytes = sim_fetch_register (gdbsim_desc, > > REGISTER_SIM_REGNO (regno), > > buf, REGISTER_RAW_SIZE (regno)); > > ... > > supply_register (regno, buf); > > > > Which is precisely the opposite of what I want: sim_fetch_register needs > > to fetch the raw (uncooked) registers, which is precisely the set that > > don't have names :-( > > > > REGISTER_SIM_REGNO doesn't help, because we never get to the code for the > > registers I need. > > Want it fixed? Next to no targets define the macro so changing the the > behavour - make REGISTER_SIM_REGNO totally responsible for the decision > is straight forward. > > (In fact, why didn't I do this before). Yeah! that would be great. R.