Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: brobecker@adacore.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA/i386] Functions returning TYPE_CODE_ARRAY types ...
Date: Sun, 09 Oct 2005 19:13:00 -0000	[thread overview]
Message-ID: <200510091912.j99JCrxB007502@elgar.sibelius.xs4all.nl> (raw)
In-Reply-To: <20051008075513.GC22319@adacore.com> (message from Joel Brobecker on Sat, 8 Oct 2005 00:55:13 -0700)

> Date: Sat, 8 Oct 2005 00:55:13 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> 
> Hello,
> 
> One of our users just came across this on an i386-linux machine.
> He tried to do a "finish" on a function that returns an array whose
> size is statically known. This is not possible in C, but this can be
> done in Ada. Consider the following code:

Dunno any Ada, but...
> 
> The problem is that the the i386 struct-return code did not expect
> a function whose return type is a TYPE_CODE_ARRAY. This case is not
> mentioned as far as I could tell in the ABI, but the array is returned
> the same way records would be.
> 
> The attached patch implements this.
> 
> 2005-10-07  Joel Brobecker  <brobecker@adacore.com>
> 
>         * i386-tdep.c (i386_reg_struct_return_p): Allow array types as well.
>         (i386_return_value): Add handling for functions that return array
>         types.

...this makes sense to me.  Please go ahead.

Mark


  reply	other threads:[~2005-10-09 19:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-08  7:55 Joel Brobecker
2005-10-09 19:13 ` Mark Kettenis [this message]
2005-10-10  1:18   ` Joel Brobecker

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=200510091912.j99JCrxB007502@elgar.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sources.redhat.com \
    /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