m68k structure return register
Daniel Jacobowitz
drow@false.org
Fri Oct 5 20:36:00 GMT 2007
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
More information about the Gdb
mailing list