This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFC/RFA] Print in-memory struct return values
Date: Sat, 08 May 2004 16:24:54 -0400
From: Andrew Cagney <cagney@gnu.org>
Try something long and explict:
RETURN_VALUE_ABI_GUARANTEES_ADDRESS_RETURNED_CONVENTION
RETURN_VALUE_ABI_PRESERVES_ADDRESS_CONVENTION
Ouch. That's really ugly. I thought RETURN_VALUE_STRUCT_CONVENTION
was already long enough. I'd really like to avoid thos really long
names. Hmm what if I use:
RETURN_VALUE_ABI_RETURNS_ADDRESS
RETURN_VALUE_ABI_PRESERVES_ADDRESS
it needs to be really clear to who ever is adding code to return this
that it is very dependant on the ABI (and not good luck).
I'll spell it out. I've added a comment to i386_return_value() citing
the ABI on this issue.
Mark