From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9109 invoked by alias); 5 Dec 2012 09:33:20 -0000 Received: (qmail 9099 invoked by uid 22791); 5 Dec 2012 09:33:18 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Dec 2012 09:33:13 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id E0F07CB3184; Wed, 5 Dec 2012 10:33:16 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZBnzOthcH99X; Wed, 5 Dec 2012 10:33:16 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id AC621CB3181; Wed, 5 Dec 2012 10:33:16 +0100 (CET) From: Eric Botcazou To: Andreas Arnez Cc: Joel Brobecker , gdb@sourceware.org Subject: Re: Unexpected DW_AT_type for Ada strings on s390x? Date: Wed, 05 Dec 2012 09:33:00 -0000 Message-ID: <2301394.PMxbZnumZx@polaris> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.16-desktop; KDE/4.7.2; x86_64; ; ) In-Reply-To: <87r4n4hmzh.fsf@linux.vnet.ibm.com> References: <87fw3mhxbb.fsf@linux.vnet.ibm.com> <20121204121036.GK18566@adacore.com> <87r4n4hmzh.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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/msg00018.txt.bz2 > 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. It's passed by invisible reference in C and explicit reference in Ada. > Thanks. Eric, do you confirm that it's intentional to adjust the > DW_AT_type based on ABI? The ABIs are indeed different so the debug info will be different. -- Eric Botcazou