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 rs6000 family
- From: Jim Blandy <jimb at redhat dot com>
- To: Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 01 Apr 2004 15:59:57 -0500
- Subject: Re: RFA: use single debug->gdb register number func for rs6000 family
- References: <vt2k713jpbx.fsf@zenia.home> <20040401113238.4e563dc2@saguaro>
Kevin Buettner <kevinb@redhat.com> writes:
> 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.
Committed, thanks.