From: Andreas Arnez <arnez@linux.vnet.ibm.com>
To: Eric Botcazou <botcazou@adacore.com>
Cc: Joel Brobecker <brobecker@adacore.com>, gdb@sourceware.org
Subject: Re: Unexpected DW_AT_type for Ada strings on s390x?
Date: Wed, 05 Dec 2012 09:22:00 -0000 [thread overview]
Message-ID: <87r4n4hmzh.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <20121204121036.GK18566@adacore.com> (Joel Brobecker's message of "Tue, 4 Dec 2012 16:10:36 +0400")
Joel Brobecker <brobecker@adacore.com> writes:
> [Cc'ing Eric, as he is the compiler expert - GDB just represents what
> the compiler tells us]
Sure. Should we also CC the gcc mailing list?
> My first guess is that the variantion in type definition is caused
> by differences in ABI. I don't know s390 platforms, so I can't
> confirm offhand. But it seems like a plausible way to pass the
> argument.
Right, the two-element structure is passed by reference on s390x. But
that also applies to the same structure in C/C++. Nevertheless, with C
the argument's DW_AT_type reflects the real type and gcc adjusts the
DW_AT_location instead.
> If Eric confirms my guess, the attached patch should fix the problem.
Thanks. Eric, do you confirm that it's intentional to adjust the
DW_AT_type based on ABI?
Joel, in the meantime I suggest to commit the second line of your patch.
It's independent of the outcome, and we might otherwise lose track of
it.
next prev parent reply other threads:[~2012-12-05 9:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-04 11:27 Andreas Arnez
2012-12-04 12:11 ` Joel Brobecker
2012-12-05 9:22 ` Andreas Arnez [this message]
2012-12-05 9:33 ` Eric Botcazou
2012-12-06 4:52 ` Joel Brobecker
2012-12-06 13:40 ` Andreas Arnez
2012-12-07 3:03 ` 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=87r4n4hmzh.fsf@linux.vnet.ibm.com \
--to=arnez@linux.vnet.ibm.com \
--cc=botcazou@adacore.com \
--cc=brobecker@adacore.com \
--cc=gdb@sourceware.org \
/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