From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3720 invoked by alias); 5 Dec 2012 09:22:57 -0000 Received: (qmail 3711 invoked by uid 22791); 5 Dec 2012 09:22:56 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e06smtp10.uk.ibm.com (HELO e06smtp10.uk.ibm.com) (195.75.94.106) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Dec 2012 09:22:48 +0000 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 5 Dec 2012 09:22:43 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 5 Dec 2012 09:22:41 -0000 Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps3074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qB59Ma4P66912258 for ; Wed, 5 Dec 2012 09:22:36 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost.localdomain [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qB59MhFZ009727 for ; Wed, 5 Dec 2012 02:22:43 -0700 Received: from BR87Z6LW (dyn-9-152-212-149.boeblingen.de.ibm.com [9.152.212.149]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id qB59MgQN009719; Wed, 5 Dec 2012 02:22:43 -0700 From: Andreas Arnez To: Eric Botcazou Cc: Joel Brobecker , gdb@sourceware.org Subject: Re: Unexpected DW_AT_type for Ada strings on s390x? References: <87fw3mhxbb.fsf@linux.vnet.ibm.com> <20121204121036.GK18566@adacore.com> Date: Wed, 05 Dec 2012 09:22:00 -0000 In-Reply-To: <20121204121036.GK18566@adacore.com> (Joel Brobecker's message of "Tue, 4 Dec 2012 16:10:36 +0400") Message-ID: <87r4n4hmzh.fsf@linux.vnet.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii x-cbid: 12120509-4966-0000-0000-0000044BEE2C X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00017.txt.bz2 Joel Brobecker 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.