[patch] Handle return small struct in rs600 (size is not 4/8)

Andreas Schwab schwab@linux-m68k.org
Mon Aug 15 17:57:00 GMT 2011


Mark Kettenis <mark.kettenis@xs4all.nl> writes:

> ...what version of GDB are you looking at?  The current code in
> ppc-sysv-tdep.c already handles the broken way GCC implements this.
> Just make sure your target uses ppc_sysv_abi_broken_return_value()
> instead of ppc_sysv_abi_return_value().  The NetBSD/powerpc and
> OpenBSD/powerpc targets already do this.  Guessing that you're on
> Linux and that GCC is the primary compiler on that platform, it
> probably needs that same treatment.

I don't see any failures in gdb.base/structs.exp on ppc-linux or
ppc64-linux.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb-patches mailing list