This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: m68k structure return register
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 5 Oct 2007 16:36:23 -0400
- Subject: Re: m68k structure return register
- References: <200706201325.07067.vladimir@codesourcery.com> <200709302213.04766.vladimir@codesourcery.com> <20070930204008.GA15765@caradoc.them.org> <200710051631.30523.vladimir@codesourcery.com>
On Fri, Oct 05, 2007 at 04:31:29PM +0400, Vladimir Prus wrote:
> Ok, so we can made structure return register right for all
> targets, except for uclinux.
> Or we can keep it as it us today -- wrong for bare-metal,
> rtems and unclinuxoldabi.
> Which one seems better?
I stumbled on another option today. Take a look at target_is_uclinux
in m68klinux-tdep.c.
This is a property of the target, not reflected in the gdbarch,
unfortunately. So we don't know it when we're initializing a
gdbarch and we can't record the result with the gdbarch. We
might have to put a function pointer in the tdep structure
which returns the right register to use.
--
Daniel Jacobowitz
CodeSourcery