From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1870 invoked by alias); 2 Jul 2004 15:19:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1863 invoked from network); 2 Jul 2004 15:19:07 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 2 Jul 2004 15:19:07 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i62FJ6e3005388 for ; Fri, 2 Jul 2004 11:19:07 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i62FJ6002164; Fri, 2 Jul 2004 11:19:06 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4B9902B9D; Fri, 2 Jul 2004 11:18:55 -0400 (EDT) Message-ID: <40E57CDF.8090809@gnu.org> Date: Fri, 02 Jul 2004 15:19:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: make sim interface use gdbarch methods for collect/supply References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00016.txt.bz2 > At the moment, remote-sim.c's gdbsim_fetch_register and > gdbsim_store_register functions assume that the simulator's register > set (as visible via sim_fetch_register and sim_store_register) > corresponds exactly to GDB's raw register set. This patch is meant to > remove that assumption. Why do we need this extra level of indirection? Since gdb/sim are paired at the source code level, we can simply change the gdb/sim interface. Andrew > 2004-06-30 Jim Blandy > > Don't assume that the sim's register set and GDB's raw register > set have the same layout. > * gdbarch.sh (sim_supply_register, sim_collect_register): New > methods. Have gdbarch.c #include regcache.h. > * gdbarch.c, gdbarch.h: Regenerate. > * remote-sim.c (gdbsim_fetch_register): Pass the register value > collected from the sim to GDB via the new gdbarch methods. > * Makefile.in (gdbarch.o): Update dependencies. >