From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20620 invoked by alias); 4 Aug 2004 18:07:30 -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 20594 invoked from network); 4 Aug 2004 18:07:28 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 4 Aug 2004 18:07:28 -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 i74I7Ne3003602 for ; Wed, 4 Aug 2004 14:07:28 -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 i74I7Ha05585; Wed, 4 Aug 2004 14:07:17 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D9EFC2B9D; Wed, 4 Aug 2004 14:07:11 -0400 (EDT) Message-ID: <411125CF.1040102@gnu.org> Date: Wed, 04 Aug 2004 18:07:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040801 MIME-Version: 1.0 To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: PowerPC sim & GDB: use fixed register numbering References: <410F8C3E.3060502@gnu.org> <4110EA27.7020904@gnu.org> <41111DEC.7080102@gnu.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00090.txt.bz2 > Andrew Cagney writes: > >>>> > The old code, which did an under-the-covers call into gdb to map number -> name, was bad and definitly needed to be replaced. The above though could still do with some work - too much on the magic of those numbers in gdb/sim-ppc.h :-( >>>> > Anyway, lets first get the enum in place. >> >>> >>> Since we've nailed the enum, what should we do about the sim/ppc? > > > What do you have in mind? Something that uses the enum directly. Have a look at the other simulators that use the enum - they have a big switch doing a map. Andrew PS: I see old sim changes were accidently committed, I've reverted them.