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
From: Andreas Schwab <schwab@suse.de>
Date: Sun, 16 May 2004 00:12:39 +0200
Mark Kettenis <kettenis@chello.nl> writes:
>From the 68000 supplement:
Functions Returning Structures or Unions
As mentioned above, when a function returns a structure or union, it
expects the caller to provide space for the return value and to place
its address in register %a0. Having the caller supply the return
object's space allows re-entrancy.
A function returning a structure or union also sets %a0 to the value
it finds in %a0. Thus when the caller receives control again, the
address of the returned object resides in register %a0. ...
Thanks Andreas. That was what I was looking for. Michael, are you
aware of any ABI documentation for the not-quite-SVR4 embedded m68k
targets? Are those GCC only?
Mark