From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iH9qFV6wf2NcWxwAWB0awg (envelope-from ) for ; Thu, 24 Nov 2022 12:56:46 -0500 Received: by simark.ca (Postfix, from userid 112) id 543ED1E11E; Thu, 24 Nov 2022 12:56:46 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=u1ZaEWFy; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D21721E112 for ; Thu, 24 Nov 2022 12:56:45 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 164A9382FCBC for ; Thu, 24 Nov 2022 17:56:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 164A9382FCBC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669312602; bh=9ShJc/I0s3NnZKZVyfeSL5+h5ehd+ycey8xGBtAKUAc=; h=To:CC:Subject:Date:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=u1ZaEWFyN0lseQNS4Sxkakob0ZTPRpT1JUVd5+TNWVVW5nEFHesl+rsSbwFUe5qH2 wRhzfzsfMgBF2oEZwokCHFWjZgbTJ6GczT8ZXeQr+nqlfnGkDB40v+moP6L7qI7bOm O9DAboRihbgIz778rwsidtiwVVBjTOQXxzwdGgjY= Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 0039C382FCA4 for ; Thu, 24 Nov 2022 17:56:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0039C382FCA4 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AOGlC04017785; Thu, 24 Nov 2022 17:56:18 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2105.outbound.protection.outlook.com [104.47.58.105]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3m2cekhbyf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Nov 2022 17:56:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dpsdRj+z9e/GGFP/OAxUxuW/dyqcKdDFs5b8q4GZ3CQyVonXjlRGYxYDH64D8VO95LWqWjE8jErviC+wCX/SXtvp4o7uy5kUldxFSifZQe8qRhr3VTPM5Ebp0TCWc7kE3ey2WYVpVPKvm+ki2JhhGgWEEBfZAfTFLnSI+tjuiR7P5hrQoufZ1lnRn1esSXirYUfwcbhVPvXC0VSXoYB7ifCxejL3YPfo1rjXSqiy6ZT2Odi4VQcGHJTpxkuvTBgnurMcOZ7u4L3WNloVn2TUl0Dg1RUtdiOXbOKXE+Jb8w2R90M1Snzn3WZGR73DsjhKE0HZaZO82RssL4F7FTbRJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZYV8i95ti0vDZkRC5GmYzz9tthqMqG7C8+jziXDZ/SI=; b=eVIjPAihSfdLZ5kjQwtidsKxA5R7AKRQdrQcGiNgx4dce6r9YqbzGkEV2tLg0+b1kJ+YtMw6GxpYeq0m0r118qz1+2lEPHc3Wm3xfJeG2vilzTINAYhqrSt9Ew+QodEzUC7HizkL8T1GWR6idKzTAUaGfpgAIEWakBY0qIGlV/qzmP/tTuC9M+pA3b+fNcVuln/Nsp/q+dZcln5LRw9Y/4Ywz1lKYM1s2phtjYAB2ZoxcgPtKWfzrMjTJRGlnAV7lqaGCw6U3pWN59XXJNV+G3K9Cehlla9v2L+fvaly1yxhYpEP2zslXc3mmaJcNDpkTL2pXDovxVBns29m925L1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ibm.com; dmarc=pass action=none header.from=ibm.com; dkim=pass header.d=ibm.com; arc=none Received: from BY5PR15MB3540.namprd15.prod.outlook.com (2603:10b6:a03:1b6::29) by DM6PR15MB3707.namprd15.prod.outlook.com (2603:10b6:5:1d0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.17; Thu, 24 Nov 2022 17:56:14 +0000 Received: from BY5PR15MB3540.namprd15.prod.outlook.com ([fe80::8193:b6c0:13ef:34e4]) by BY5PR15MB3540.namprd15.prod.outlook.com ([fe80::8193:b6c0:13ef:34e4%7]) with mapi id 15.20.5857.019; Thu, 24 Nov 2022 17:56:14 +0000 To: Ulrich Weigand , "gdb-patches@sourceware.org" , "tom@tromey.com" CC: Sangamesh Mallayya , Sanket Rathi , "simark@simark.ca" Subject: Re: [PATCH] Fix call functions command bug in 64-bit programs for AIX Thread-Topic: [PATCH] Fix call functions command bug in 64-bit programs for AIX Thread-Index: AQHY8o8oLBa0QEnD0kK130AZD8l+9K41B4CAgAT1XL+ABKCogIAAGRWBgAAPgACAAAIJQYAABMQAgAAA+XmAAAamgIAClNw1gABN5YCAAC+6XoABO1MAgAtOfvs= Date: Thu, 24 Nov 2022 17:56:14 +0000 Message-ID: References: <049a54779f7280ddef6c2da12d0714023514dc9b.camel@de.ibm.com> <881bbbcc3646f5df9c2f334133907d3ca37149a6.camel@de.ibm.com> <48b9cc7b5cb4981f03fd459c4365242a11546c1e.camel@de.ibm.com> In-Reply-To: <48b9cc7b5cb4981f03fd459c4365242a11546c1e.camel@de.ibm.com> Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR15MB3540:EE_|DM6PR15MB3707:EE_ x-ms-office365-filtering-correlation-id: 3a6f75c1-41d7-448a-7f9c-08dace452e0a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iATXvIj+6Ek7IyOHX+fu9fpiCtfRo0t1aAz++30T4+yChDZ6JO5YazWk5FLVj5K1L5a6vbVbV3eAp9XKHUyKsQ/NPwBm0gd3ja0SZzWXv2KKWHyn3tbI21ix4z0duUHvKau3zajvlygr8OU6oYXtibiFF1qUi5gc+y4C+qhYARoyxxSoXoZ3LhRpxtSA1grsQtmEwvK/3oAZlx/kMp0TshGd+6M1aT40Nh/QY6/0nGssLn9DC3+azTr+Qb3Y4SjtpJR3JyYyhkIAfr3XzOXTvNywm8KTqSWaEwNMcCnaa87F64JKSW3yhHokiIr/RoZM8tE/ZY6tpt665qZZzg4uDNgkvF1Ny1W5kNuBgBUgt/ew797C5/y6RJgX83A8z+j1s2tD2qqeuxU6la0OyfCiOSapWhcdtR8IAlI/MIt+o9VrIHiNFS5RhljZuUfQtiqQWHQdmloBQHMPAmdC4g6fBlwAbvWuiX/infR/ucJEnmHrtuQKNW4NjiZS1tzfxFDuynlJtfm7rTcKlahHLnF0X5AzzPDMdF4FeyXvjvlsFxJSvqNWEvSOFXOn/D6cpNgl+DsD9SEWd5/xXfcVedkd7LLeL6d1z9RDMa2UTA6v+oZvBMfZuvtnZhMMark9AAEgb2KcV1ACRXCqx4mIGUJoWho2IgGf+iCf0SKe+8OE8VZ3Yf15sLbtt3ynkxwFpQO6A6YCpfSEz2EZ8cLTc+BdgKq43if+hHfV4y5mJgmKw6ihQhHnQ67SaJoIhOOOa5v4ZXdI8YJsZnrGxhmQ+KfF8g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR15MB3540.namprd15.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(366004)(346002)(39860400002)(376002)(396003)(451199015)(19627235002)(33656002)(316002)(91956017)(8676002)(4326008)(66476007)(6486002)(86362001)(66556008)(64756008)(66446008)(66946007)(76116006)(15974865002)(83380400001)(71200400001)(186003)(53546011)(6506007)(966005)(6512007)(478600001)(54906003)(110136005)(166002)(38070700005)(38100700002)(9686003)(122000001)(19627405001)(2906002)(5660300002)(8936002)(41300700001)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?fjm/+HP9GldQCMJ6F4E7DJqFSpJ5yQ5e/3VkjnrYhN/2xbJWCUeWzp8Iu74Y?= =?us-ascii?Q?Gc1jL3+J0yiEPDTZo0HVejy+vnAlFAPz3YumnTPizrI9rBH/BxQIuPKMDS+j?= =?us-ascii?Q?6mEPyfQ3FwEQDn4O0r1Nhs7Fk7hWTLsGOHEEluVZy7kYtzMddfc8Qm44poMJ?= =?us-ascii?Q?Md8tlqC6ZWFBpQQ7ZpPgAbGlxlFDgj8BxKJP6DqbQ7agdUw/oHSNOmdRMNb7?= =?us-ascii?Q?TJpTN8WZ01S26ATPaXQ8e0q5HHZcRli0Dr1K0Jm/ZbMlL4fZJa59w7hMiwvp?= =?us-ascii?Q?TbV6wi467eoEkV1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= =?us-ascii?Q?lycEgAwSsqywC0Wna5A1az2EHemne3pM4ZpN3M9p7D+VIQsTRqUmOc8NQQSv?= =?us-ascii?Q?oMB8zRJHTRsyoYXmMMOw6H52r4u6iAsV0Bwyc0CiGvcw0uv7vZ6+b3DPMgbg?= =?us-ascii?Q?2Ie7Aorhuox2d1F9cNHwUW2u9WnwCN7kk2YXYvmWx64Gxvi1GVgZgHXSXFqx?= =?us-ascii?Q?jLCOZ9S6f/TlKCwkDg+jftFFyPIh+JsJzVHxT5s9uYK8XfbCvSaybo9wqkWD?= =?us-ascii?Q?vbf7WtlH12p+7Kh7NUvUUgWvZ4pXg57vml91Hqe8HZFhDYsp57A91MuahLJn?= =?us-ascii?Q?nEZYfVHw8XThCa2plSqR+za0itKGdXfv2Fuv/IWeq/UbOikWj2tglDPbE3kR?= =?us-ascii?Q?Mfae5xQz2mgq8RkwlmGpnywZlgwApXmG7jr9SqS/paWK8Br2+M1+eJgbpVOS?= =?us-ascii?Q?zwuXBS7K5eIQlfz6M7582qH5BM//IYzRZTXG0we5avwu?= X-OriginatorOrg: ibm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR15MB3540.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a6f75c1-41d7-448a-7f9c-08dace452e0a X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2022 17:56:14.6695 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fcf67057-50c9-4ad4-98f3-ffca64add9e9 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zHHzkN0I2Feb1KwLbYqsRROVzNEZvrpc1mR1+OpfoJr3V2yzScFBtD+WOuHZDHxR+nvDPmumVh0BVTSYJBbEGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR15MB3707 X-Proofpoint-ORIG-GUID: r6-QotXf55o35VQrXa11C5VSmu6tf_y2 X-Proofpoint-GUID: r6-QotXf55o35VQrXa11C5VSmu6tf_y2 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-24_11,2022-11-24_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=999 priorityscore=1501 bulkscore=0 impostorscore=0 clxscore=1011 spamscore=0 adultscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211240131 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Aditya Kamath1 via Gdb-patches Reply-To: Aditya Kamath1 Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi Ulrich, Thank you for pushing the patch. Sure.. Hi Tom, >> warning: (Internal error: pc 0x10000290 in read in psymtab, but not in s= ymtab.) >This normally indicates a serious bug. Also, I guess you must be using >stabs? >> BFD: /usr/lib/libc.a(/usr/lib/libc.a(shr_64.o)): wrong auxtype 0xff for = storage class 0x2 >> BFD: /usr/lib/libc.a(/usr/lib/libc.a(shr_64.o)): wrong auxtype 0xff for = storage class 0x6b >These seem concerning. I will check why this is happening. I will plan for it in our future patche= s for AIX and keep you in cc in that mailing thread once I find a solution.= By the way I use DWARF for all the tests I do. >I didn't look at this too deeply, but it's worth noting that code >handling the marshalling of integers should also handle >TYPE_CODE_FIXED_POINT as well, as those are integers with a funny >name. There should be some Ada tests for this. >If you can't test Ada, I guess don't worry about it. I'm not 100% sure >the way you've written this will work for a fixed-point number. So, I had been searching for TYPE_CODE_FIXED_POINT. Unfortunately, when I t= ried running the Ada test cases for the same, the output was that the test= case is unsupported. One of the things about fixed point numbers is I have not found a way I can= write the same in C or C++ in AIX. For example, I found how IBM Z folks do= it which is in the link [ https://www.ibm.com/docs/en/zos/2.4.0?topic=3Dsp= ecifiers-fixed-point-decimal-types-c-only#dcon ]. While few of other platfo= rms that do not have float type use this [ https://www.ibm.com/docs/en/rhap= sody/8.4.0?topic=3Delements-using-fixed-point-variables ]. Kindly let me know if any of you know how we can use it in C/C++ in AIX. I = would like to learn and then check how we can handle them in GDB. So far in= C or C++ I have not been successful in finding how to use fixed point inte= gers in AIX. Have a nice day ahead. Thanks and regards, Aditya. Using fixed-point variables You can use IBM Rational Rhapsody Developer for C to provide an option to u= se fixed-point variables for target systems that do not include floating-po= int capabilities. www.ibm.com Fixed point decimal types (C only) - IBM Fixed point decimal types are classified as arithmetic types. To declare fi= xed point decimal variables and initialize them with fixed point decimal co= nstants, you use the type specifier decimal.For this type specifier, decima= l is a macro that is defined in the decimal.h header file. Remember to incl= ude decimal.h if you use fixed point decimals in your program. www.ibm.com ________________________________ From: Ulrich Weigand Sent: 17 November 2022 18:24 To: gdb-patches@sourceware.org ; Aditya Kamath1= ; simon.marchi@efficios.com Cc: Sangamesh Mallayya ; tom@tromey.com ; Sanket Rathi Subject: Re: [PATCH] Fix call functions command bug in 64-bit programs for = AIX Aditya Kamath1 wrote: >You were right. Thank you for pointing out. I have attached >the outputs below. It works fine now. This version is OK, I've checked it in now. Tom does make very valid points in his reply however, so it would be good if you can still follow up on that. Bye, Ulrich