This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: use single debug->gdb register number func for rs6000family
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 1 Apr 2004 11:32:38 -0700
- Subject: Re: RFA: use single debug->gdb register number func for rs6000family
- Organization: Red Hat
- References: <vt2k713jpbx.fsf@zenia.home>
On 29 Mar 2004 16:49:54 -0500
Jim Blandy <jimb@redhat.com> 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 <jimb@redhat.com>
>
> * 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.