From: Corinna Vinschen <vinschen@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Change gdbarch_return_value to take function type instead of return value type
Date: Wed, 13 Oct 2004 10:14:00 -0000 [thread overview]
Message-ID: <20041013101547.GF18268@cygbert.vinschen.de> (raw)
In-Reply-To: <20041013093144.GE18268@cygbert.vinschen.de>
On Oct 13 11:31, Corinna Vinschen wrote:
> Otherwise, thanks for approving the patch, I'll check it in in a few minutes.
No, I won't. I found that my patch missed the calls of using_struct_return
in eval.c. These calls only happen in case of a OP_OBJC_MSGCALL operation.
At line 841 in eval.c, in function evaluate_subexp_standard() I found this:
/* If we found a method with symbol information, check to see
if it returns a struct. Otherwise assume it doesn't. */
if (method)
{
[...]
struct_return = using_struct_return (value_type, using_gcc);
}
else if (expect_type != NULL)
{
struct_return = using_struct_return (check_typedef (expect_type), using_gcc);
}
While the `if (method)' branch is simple, the `else if' branch can't be
solved easily. evaluate_subexp_standard just gets the expected return type
as parameter.
Does anybody know how to get around this problem? For now I can only see
one way, redefine gdbarch_return_value to get both, function type and return
value type.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.
next prev parent reply other threads:[~2004-10-13 10:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-12 12:48 Corinna Vinschen
2004-10-12 21:09 ` Eli Zaretskii
2004-10-13 9:20 ` Corinna Vinschen
2004-10-12 22:15 ` Mark Kettenis
2004-10-13 9:30 ` Corinna Vinschen
2004-10-13 10:14 ` Corinna Vinschen [this message]
2004-10-15 14:17 ` Corinna Vinschen
2004-10-15 14:23 ` Corinna Vinschen
2004-10-19 13:29 ` Corinna Vinschen
2004-10-25 23:18 ` 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=20041013101547.GF18268@cygbert.vinschen.de \
--to=vinschen@redhat.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