Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: schwab@suse.de
Cc: msnyder@redhat.com, cagney@gnu.org, gdb-patches@sources.redhat.com
Subject: Re: [PATCH/RFC/RFA] Print in-memory struct return values
Date: Sun, 16 May 2004 10:28:00 -0000	[thread overview]
Message-ID: <200405161028.i4GASchl002479@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <jead09xru0.fsf@sykes.suse.de>

   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


  reply	other threads:[~2004-05-16 10:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-07 17:07 Mark Kettenis
2004-05-07 22:35 ` Andrew Cagney
2004-05-07 23:10   ` Mark Kettenis
2004-05-08 19:58   ` Mark Kettenis
2004-05-12 17:47     ` Michael Snyder
2004-05-15 21:26       ` Mark Kettenis
2004-05-15 22:12         ` Andreas Schwab
2004-05-16 10:28           ` Mark Kettenis [this message]
     [not found]   ` <200405081958.i48JwlUU000353@elgar.kettenis.dyndns.org>
     [not found]     ` <409D4216.4050401@gnu.org>
     [not found]       ` <200405082101.i48L1NUK000503@elgar.kettenis.dyndns.org>
2004-05-08 21:14         ` Andrew Cagney
2004-05-08 23:02           ` Mark Kettenis
2004-05-09 13:59             ` Andrew Cagney
2004-05-09 14:03               ` Mark Kettenis
2004-05-11 23:53                 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200405161028.i4GASchl002479@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@redhat.com \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox