This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: m68k structure return register


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]