This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Remove remote_translate_xfer_address gdbarch routine
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 11 May 2007 13:35:35 -0400
- Subject: Re: [rfc] Remove remote_translate_xfer_address gdbarch routine
- References: <200705090019.l490JuHg026205@d12av02.megacenter.de.ibm.com>
On Wed, May 09, 2007 at 02:19:56AM +0200, Ulrich Weigand wrote:
> Hello,
>
> this is another unused gdbarch routine: remote_translate_xfer_address.
>
> While this is actually still called in remote.c, there is just a
> single non-default definition in ia64-tdep.c, and this is a copy
> of the generic routine. Thus the calls in remote.c are no-ops.
>
> I'd suggest to remove this, but I'm not quite sure about the
> history of the callback. Is this something we should attempt
> to keep in case some future target will need it again?
My reading of the changelog entries associated suggests that it is
obsolete. It was used for the d10v, frv, ia64, and avr; the frv and
avr methods were removed, probably during another cleanup of the
distinction between pointers and addresses. I think it can go.
We may need it back again - but then we'll have a better idea
what arguments it needs.
--
Daniel Jacobowitz
CodeSourcery