From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QFkBGitLSmTDqTcAWB0awg (envelope-from ) for ; Thu, 27 Apr 2023 06:15:07 -0400 Received: by simark.ca (Postfix, from userid 112) id 662471E221; Thu, 27 Apr 2023 06:15:07 -0400 (EDT) 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=SYv/xHDc; 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=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.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 C09FD1E0D3 for ; Thu, 27 Apr 2023 06:15:06 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 36EE33858C62 for ; Thu, 27 Apr 2023 10:15:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36EE33858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682590506; bh=ewoyfFeJCMIi+vzWzQXLLXnDCGPUU1E8pZASRrt8enc=; h=To:CC:Date:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=SYv/xHDclq6iKkkdZAmUYMCMELoobY1ywMJLZdZcsFiGMy1yEQBYb85Y6K2YOBbcY lAxVX+MPq4jgdC3PEhLxJqaFn7pDJyrw36eUOWICrWJ3B8WxWp2CaHUg1eAUhKI4hM lOsh5Xj60RMa6x18NN3onU53O5kY5vb85N9RR9Cc= Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 469453858D32 for ; Thu, 27 Apr 2023 10:14:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 469453858D32 Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33RAA7Up027374; Thu, 27 Apr 2023 10:14:45 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2040.outbound.protection.outlook.com [104.47.56.40]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3q7hurrjy7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Apr 2023 10:14:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=giN/9bheafebszjLSrdlVvn3gEmU59mH2MolPaJYhISDENhDUuSmJClB5rjg1xAkUYJ4xw4sdeRUkX7/yB4ayr45k8qQvoUhOe7Ti+7nlAMMUFCchzKSql2ZniHHo18oF+m0GWYvNxSOfWEE4Mb4AevbhUsuhPCOfnYU/5gdd/9VeyRjS/kjSUHk4jF5DT3bigatPUjNyRmMnz+Q7DQ+S6gNOoANVK9SWd4pweYDHC238KzS4Dzl8YIe4Vsuk6cdc/99/qHr+SCPKLNLxwYqfOLTQgX5g8qskfdtSNvmz2Sx4yw8kHXTj6GjjCHEBuT4zYcZY+8NBRWGSwkQ8CuM3Q== 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=iQ3SbVOWfFJHbecomxv+plR2ZvDf508qR1kGlYXANyw=; b=E+N+gRNwaC5Wko17kN/kqlhCRhsURkWlOQv96VINLn51FBLtWkZ9gC+ydHnQX9oTVA6ZqrdI28ytXynqBfBYJGMILX8D4/+zFlQHqBe1Nu4IFvzsQ1EBCwR/LPydwupyGWYS0+FVDjGcx3oCDH/a+yiGHDZYFgqpa/oxHkDXSUqCqXesYc4ftwf/1Xrgw8uv8KQxq2GxdJLmS7z4iV1K6HfTcieYaCt7OJk21iYl4qh4OQEYRJvKcTFnPitKJaKJ9Tz6um/Vf03CoPp/k6UzJsiF2AP6A+tn1nURQdxoIGI6kU8eYpGOhe1o6Qa+UwGe/EJBZ1n0F/pFycHlqApmkg== 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 CH2PR15MB3544.namprd15.prod.outlook.com (2603:10b6:610:5::26) by SA1PR15MB4580.namprd15.prod.outlook.com (2603:10b6:806:19c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.21; Thu, 27 Apr 2023 10:14:43 +0000 Received: from CH2PR15MB3544.namprd15.prod.outlook.com ([fe80::fc4b:b8cb:1472:d50a]) by CH2PR15MB3544.namprd15.prod.outlook.com ([fe80::fc4b:b8cb:1472:d50a%6]) with mapi id 15.20.6340.022; Thu, 27 Apr 2023 10:14:43 +0000 To: Tom Tromey , Aditya Kamath1 via Gdb-patches , Ulrich Weigand , Sanket Rathi CC: Ulrich Weigand , Sangamesh Mallayya , Sanket Rathi Thread-Topic: [EXTERNAL] Re: [PATCH] Fix call functions command bug in 64-bit programs for AIX and PC read in psymtab-symtab warning Thread-Index: AQHZbqQQBfkl018eIkqZzSgzxcljOa8q4lytgBQbG/4= Date: Thu, 27 Apr 2023 10:14:43 +0000 Message-ID: References: <049a54779f7280ddef6c2da12d0714023514dc9b.camel@de.ibm.com> <881bbbcc3646f5df9c2f334133907d3ca37149a6.camel@de.ibm.com> <48b9cc7b5cb4981f03fd459c4365242a11546c1e.camel@de.ibm.com> <87r0xsb4np.fsf@tromey.com> <87sfd24j4w.fsf@tromey.com> In-Reply-To: <87sfd24j4w.fsf@tromey.com> Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH2PR15MB3544:EE_|SA1PR15MB4580:EE_ x-ms-office365-filtering-correlation-id: 4f148785-bdc4-46cb-e724-08db4708385c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Tg1DOCoSUAe14brL1K6dRKJSS6T/7E2f++obzN8DNTdNrtlAZzqN1adAFVbYx6YjZ7DzraqESwz4+yOFauTh2f6tfmLac3gSqmpQ1reUgzWoyYQQvAiqQBklPD3l8ejExBYH2/SF7XSoZexYmedqt2egXd1GWKcmbXoH39UMazs9iO3MteSk0/dPKsZD5KAuTXIzGEC2TtnyzC4rG5efUh9xzIiLt+VWMomElX33hlbvUFKRtJRWK2HFwc0UpWOuPmUi5swG6EaFjmbAobjCcgSk8/NSNs1IqUjjm7RVLBFzuoXJ2dGSXuZpNsg7oCNRWzBCr4hFFQuf952f0vF3cikbRwwPD4IyYvdnDXcjqIBQNTvFOwJ9YJMfv2wM6wSoS0gp8K3kUeG1dYi5GXm6qiTdEcsJw0ebAAb8OTd9EhnpkaD3mbcpRmc2prQxlhyWEml9AlydmD/o8nMjU/U9hWak5jeybODefRZdcF58S98g7QDvDRMZkefeZOlHGRoqIEVOu8O3v7ap3GysS930/UQmh86WpATSdTp42dSYFdQxUjCJnxADyjEPHXy1TTuwKpn6qaXJGl2k5nInHoWlt7FZ+UfWq2qZStvEpjtWrje8c7sFW7Rv6Dak6xw2geSW x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR15MB3544.namprd15.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39860400002)(346002)(396003)(376002)(136003)(366004)(451199021)(7696005)(38070700005)(55016003)(38100700002)(86362001)(33656002)(83380400001)(122000001)(71200400001)(316002)(478600001)(9686003)(53546011)(186003)(6506007)(110136005)(54906003)(26005)(66446008)(66476007)(66556008)(76116006)(8936002)(66946007)(4326008)(5660300002)(8676002)(91956017)(64756008)(2906002)(41300700001)(52536014)(9326002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1hZahNeFTJKP6FEOCjsbAx7FRUhDEbjxHfQ6mLn/xtpPcxutltX4pxuXGs9h?= =?us-ascii?Q?WlhimnCozdeAW2rl4SG9972tb+f4qB8D2CvGfuZ8JCAi3NciQW7UdDl6G901?= =?us-ascii?Q?dz8qhsyOe2hPFuIu7FISySRkhdgnDtiV0Fq3EfRlIFyVGO8qtRVVQ1MhDi0Q?= =?us-ascii?Q?ETh8kcHhWqOvj4rQABAlFI3c9QXTTEq0La1Aw+eEjACzSeeKfA6UBumz+987?= =?us-ascii?Q?u9EpcYsI8zGrtNy5dkPvLWmyYqin59zWPkWNr2xeommQqfKCV0D2FNty7z7n?= =?us-ascii?Q?2job8bjoh2XATxvVJz029lY6sDnQhmkytsh52sbaSK9kSbsJbwYAlHH7TAXj?= =?us-ascii?Q?7pJj31R3upPLYE+wIVQimODEPTKxDRarnuP6GMkS4eLU8EzmlFpynu9ATNUx?= =?us-ascii?Q?FgTHXOC9ENj4+sVf+sAUZ4ejgyUu+6NSq9j/SUwaoUMzN2IoA3hDkPreCj/Z?= =?us-ascii?Q?Sw9b3GhUkXSk6BtfJatK4TU5lJeV25aP3SRjVUkpQspERza4FTfetp1eHteB?= =?us-ascii?Q?FR4EXH61eyPaAMUVCa3ODY6815sjIYVLZ/53Zq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r6wGKwzhpPn6G37CrBVU/GjJGaD3J4NJJN5IyXQ?= =?us-ascii?Q?dmMHVi/s5fZOEA0YBG4qyfzD9/+fzkfZ1n5YvO4/kwLuRLqewY25f4esDRLb?= =?us-ascii?Q?S9b6WrEGxyCJOmM7WB/ehLoM6K7wIiJi9kkozv83bdOZux/9KUCtkVPjEeIL?= =?us-ascii?Q?gA=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: ibm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR15MB3544.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f148785-bdc4-46cb-e724-08db4708385c X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2023 10:14:43.3925 (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: 1vmv+u9WOPwm4hjQ3ebYU4ncXF8MciYugLYSGOuqXmQUPFKLnNbgjZ2tkENzLwys5V5G+59Uej5qNXsPCjMeKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR15MB4580 X-Proofpoint-ORIG-GUID: 6vuAf9gT6adaW_2FmmhCjKX2pj_FYx-S X-Proofpoint-GUID: 6vuAf9gT6adaW_2FmmhCjKX2pj_FYx-S Subject: RE: [PATCH] Fix call functions command bug in 64-bit programs for AIX and PC read in psymtab-symtab warning X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-27_07,2023-04-26_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 spamscore=0 clxscore=1015 impostorscore=0 mlxlogscore=869 mlxscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304270087 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 Tom, >The stabs reader is on life support. If you want to track down and fix >this bug, it's up to you. >Actually I'm curious how important stabs are to your organization. I >would like to deprecate stabs in gdb 14 and remove them entirely in gdb >15. However, they are still required for AIX, I suppose we'd keep the >code around as long as you need. We are okay with you removing the stabs debugging in GDB 15. Have a nice day ahead. Thanks and regards, Aditya. From: Tom Tromey Date: Friday, 14 April 2023 at 8:15 PM To: Aditya Kamath1 via Gdb-patches Cc: Tom Tromey , Ulrich Weigand = , Aditya Kamath1 , Sangamesh Mallayya , simon.marchi@efficios.com Subject: [EXTERNAL] Re: [PATCH] Fix call functions command bug in 64-bit pr= ograms for AIX and PC read in psymtab-symtab warning >>>>> Aditya Kamath1 via Gdb-patches writes: >> warning: (Internal error: pc 0x100005a8 in read in psymtab, but not in s= ymtab.) Hi. Thanks for the reply. > But the libc shared library that gives the printf () was compiled > using stabs. So now we have symtab created for symbols used by our > code and psymtab created for the shared library functions. Ok. This answers one of my questions. The stabs reader is on life support. If you want to track down and fix this bug, it's up to you. Actually I'm curious how important stabs are to your organization. I would like to deprecate stabs in gdb 14 and remove them entirely in gdb 15. However, they are still required for AIX, I suppose we'd keep the code around as long as you need. > The problem is the shared library functions in AIX do not have an > entry in the symtab. They have in psymtab. > Coming to solving this, I did try a few things in the last one > week. Let me tell you all what I did and where I failed. I tried to > add the symtab entry in the xcoffread.c file via record_minimal_symbol > () but then realised that after initial scan GDB code was not coming > here during execution. So it failed. I tried searching around > solib-aix.c file if I can get a hint to fix this but did not find any. gdb reads 3 kinds of symbols. "Minimal" symbols are essentially "linker symbols" -- in this case they aren't super relevant. That's why your investigation here didn't yield anything. Partial symbols are made by an initial scan of the debug info. (The DWARF reader doesn't use these any more but has its own analogous idea.) When more information is needed about a partial symbol, full symbols are read for the compilation unit. The warning you are seeing means that the partial and full symbol readers disagree. This is a bug somewhere. Maybe the fix is to ensure a symbol is made in the full reader. It's also possible that the fix is to not make a partial symbol. Finding the issue isn't always very easy, but basically what you want to do is inspect the point at which the relevant partial symbol is made; then expand the CU; and finally see why the full reader doesn't make a corresponding symbol. TBH all of this stuff is a design flaw. In the DWARF reader I hope to unify the paths so that this kind of mismatch is impossible. Tom