From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9597 invoked by alias); 1 Apr 2004 18:32:46 -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 9587 invoked from network); 1 Apr 2004 18:32:45 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 1 Apr 2004 18:32:45 -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 i31IWijj016910 for ; Thu, 1 Apr 2004 13:32:44 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i31IWij30597 for ; Thu, 1 Apr 2004 13:32:44 -0500 Received: from localhost.localdomain (vpn50-1.rdu.redhat.com [172.16.50.1]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i31IWhnM026961 for ; Thu, 1 Apr 2004 13:32:43 -0500 Received: from saguaro (saguaro.lan [192.168.64.2]) by localhost.localdomain (8.12.10/8.12.10) with SMTP id i31IWcOR010083 for ; Thu, 1 Apr 2004 11:32:38 -0700 Date: Thu, 01 Apr 2004 18:32:00 -0000 From: Kevin Buettner To: gdb-patches@sources.redhat.com Subject: Re: RFA: use single debug->gdb register number func for rs6000 family Message-Id: <20040401113238.4e563dc2@saguaro> In-Reply-To: References: Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00033.txt.bz2 On 29 Mar 2004 16:49:54 -0500 Jim Blandy wrote: > It turns out that the gdbarch_tdep structure has all the information > necessary to do the job; there's no need to have separate functions. > > Tested with no regressions on powerpc-unknown-linux-gnu. > > 2004-03-28 Jim Blandy > > * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified > function for register numbers on all the rs6000-derived targets. > (rs6000_gdbarch_init): Don't register a separate > gdbarch_dwarf2_reg_to_regnum function for the E500. Use > rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all > variants. Okay.