From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oeB6EzmjQ2qmNh8AWB0awg (envelope-from ) for ; Tue, 30 Jun 2026 07:06:33 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=E9/LsE6x; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=E9/LsE6x; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 48CFD1E098; Tue, 30 Jun 2026 07:06:33 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 54F781E024 for ; Tue, 30 Jun 2026 07:06:32 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1C4634BA23CA for ; Tue, 30 Jun 2026 11:06:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C4634BA23CA Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=E9/LsE6x; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=E9/LsE6x Received: from MRWPR03CU001.outbound.protection.outlook.com (mail-francesouthazon11011009.outbound.protection.outlook.com [40.107.130.9]) by sourceware.org (Postfix) with ESMTPS id 0352A4BA2E04 for ; Tue, 30 Jun 2026 11:06:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0352A4BA2E04 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0352A4BA2E04 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=40.107.130.9 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1782817563; cv=pass; b=bnNMGTWdkUrKzOutTIAd963rw7SYJ3KU46XO1PjbnqBG2z6zzS4JMHLHip3aKWPz36O5m+yEct09kGhUtyq/xVAvvUd90vL3zjupy3ZFBJ8i4zVgJGagFpe+EStOEXn6jJ6i8/5sCeO3f1ZKNngA+WESMvNm0R5D48nXb6JpEsk= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1782817563; c=relaxed/simple; bh=QfsXKyK2RaBSiTPXeTImdufc9hyy/XuC+ypHUhmnN8Q=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=fSHO76BCb/exIU/qI4HL+nxMydXvr41ahtfrF3JK/oMvlvnGWZLHU/OCNx1Gl5Fu9qdXbhS4C9pEJnjlVSn41SC2XvnMy5SwUc+Z3KhF1Kf96bgzagfcrxwfO5uCNjrnJmp7KHl8yd080N7TWpPrO33rS+cA3MuZg5LndbsAfhg= ARC-Authentication-Results: i=3; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=E9/LsE6x; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=E9/LsE6x DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0352A4BA2E04 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=LbgMWuUs/moOXPu8pFEkmtJQw/WNgf25HDrMQTniU7D+GaUlO2FmHLDwcq0YheB99h7GmHoiRTl9XxUiP1X83UoxJAZMIoXVxKIXYn2W+n1aJwCN/os3KUveF3wtzxTIzpBlUHBkKFUcxyCZPI5/3OkxBpJFlh+E9I4vd9HseMAM1+1rgWDRaP4CRBYA7RHNsUCOLf5InEYt6kqG/jMyh7DzQ3dbaESfPqYYiiQGmZeMe7JblWpAmqkHPMXypZ1QhOPqxaqmG5ZbbqoEG6hQ7G0/xyUyB1UhxeA4x/t1RlBxxobrxlqEN5Q8f/i4R65/6zG7sN9JTyeRq6y5VZzQug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=XMRYsewaJAkexScZoUls4Xwrwypef8znvbZnj+DJVco=; b=BZXNDfcbZ/1bfIxs4qyCO3DWN2B9SdMnrpx6Z3xquIfEs2mWGIJU88vHB3t8aEfkJHQLDaNkkaOTJm6hKXDinE8CMAROxGa1QeijHvIyCONnzfhgc3cPv2/j0QzuMfSKERE/1QEPcKGFetwTzvVfUl250qwnrLkH5qoo6wrOVJd2lf7FMFdjHbCk3pihlj0atczZ8aBUtGjfyIjJVSb/ePiLoRpyUM9Rb8Jz/d+hYC6R2r6aHDI8M7iPBHb0L6bWhTTpN1qLGFG6DEYt8T8xAbrkEvn5X4eCXD5l0EmKz1bPCpApgegtbmRndcPX13BEQtKwGmXJdbV0HLGfbQ2avQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XMRYsewaJAkexScZoUls4Xwrwypef8znvbZnj+DJVco=; b=E9/LsE6xe7zuq/UNtQ7KXKvNfqRfZ81iuKtQE7PkSCd+cOq0o71Q7VI/f0Wq6OwnRD95OO3HWw4Befs4AEgqTH1OAxT1akUf77X6L/mvXZcwlC3Un1APLk8B5jppYs6jDMX0Mv91OviryDDh/p4nqfAetqky8nBA/HLb1svyqUA= Received: from AS4P195CA0052.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:65a::12) by GV2PR08MB11953.eurprd08.prod.outlook.com (2603:10a6:150:36f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.159.19; Tue, 30 Jun 2026 11:05:58 +0000 Received: from AMS0EPF00000198.eurprd05.prod.outlook.com (2603:10a6:20b:65a:cafe::aa) by AS4P195CA0052.outlook.office365.com (2603:10a6:20b:65a::12) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.8 via Frontend Transport; Tue, 30 Jun 2026 11:05:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by AMS0EPF00000198.mail.protection.outlook.com (10.167.16.244) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.6 via Frontend Transport; Tue, 30 Jun 2026 11:05:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=L6HkSfWkrrIlHfffDYg4N6uo/O2DawJjvlF67bNKNa+lcGq2AAWNQMIvHiuqy+bzeNCm3FlWergHkiklSqOMeKOtxFHbZqWF2N3XfoMCZCTzeGv6b93jzQrZV8h5slHVjXa0QzmRXS52zcYI9Tbh7AsyKyPX/Z94RG+PkXlzZfP2q8zzIVWdyHZMxzvyONmsC0sL6S9i6Xaa+LqNaeBOytfBEEVNOtFa7F3i/uvcb7RYwklX9vjX825bRv7ykolBgknY3DGPCOCqD6VtyEBm45FeuJingWfyAov6ZlahpeD09O1RIIX8E3P8A0PUCBhKU8qtdOWxFv/upkzQdpJgbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=XMRYsewaJAkexScZoUls4Xwrwypef8znvbZnj+DJVco=; b=y2jzy2raqWAjzKXRcGe7+RDrS3lLDV0e9FjSOIMExwwxm6CW6MwWkKG2DUtb2Y4n2g0V27GefvQizuUKynSC2cJzUMPAecDgBuwp2CdSdbjma4bKCgHWZ/aGaD2wYd6Ov3FivsiijyBDxev2y2t2s3tH71Gm+3amjY7z4ZPJLI1xUcvFyMVTLz0Nqx4SGZEMQBGrJAGzlusbl2IcjQSDJgvefXEiD5dVGEdZVMCAH8NHHrhUc6ooiG5RYBxUGIJt2kERGAXq72pRXPQ2AZaKATt4TyHYi4iJ8VI7YGbZ1gM4JhhOj8v2WQmXHfroPo44bL7bR4NmkYr56AwaKnPKMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XMRYsewaJAkexScZoUls4Xwrwypef8znvbZnj+DJVco=; b=E9/LsE6xe7zuq/UNtQ7KXKvNfqRfZ81iuKtQE7PkSCd+cOq0o71Q7VI/f0Wq6OwnRD95OO3HWw4Befs4AEgqTH1OAxT1akUf77X6L/mvXZcwlC3Un1APLk8B5jppYs6jDMX0Mv91OviryDDh/p4nqfAetqky8nBA/HLb1svyqUA= Received: from DUZPR01CA0066.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c2::14) by DU0PR08MB9845.eurprd08.prod.outlook.com (2603:10a6:10:446::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.159.19; Tue, 30 Jun 2026 11:04:53 +0000 Received: from DU2PEPF0001E9C5.eurprd03.prod.outlook.com (2603:10a6:10:3c2:cafe::17) by DUZPR01CA0066.outlook.office365.com (2603:10a6:10:3c2::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.8 via Frontend Transport; Tue, 30 Jun 2026 11:04:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (172.205.89.229) by DU2PEPF0001E9C5.mail.protection.outlook.com (10.167.8.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.6 via Frontend Transport; Tue, 30 Jun 2026 11:04:52 +0000 Received: from AZ-NEU-EXJ02.Arm.com (10.240.25.139) by AZ-NEU-EX04.Arm.com (10.240.25.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 30 Jun 2026 11:04:50 +0000 Received: from AZ-NEU-EX03.Arm.com (10.240.25.137) by AZ-NEU-EXJ02.Arm.com (10.240.25.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 30 Jun 2026 11:04:49 +0000 Received: from ip-10-249-57-232.eu-west-1.compute.internal (10.249.57.232) by mail.arm.com (10.240.25.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29 via Frontend Transport; Tue, 30 Jun 2026 11:04:49 +0000 From: Muhammad Kamran To: CC: Simon Marchi , Andrew Burgess , Wilco Dijkstra , Yury Khrustalev , Thiago Jung Bauermann , Adhemerval Zanella Netto , Carlos O'Donell , Muhammad Kamran Subject: [PATCH v4 0/2] gdb: Fix internal inferior calls through GNU IFUNCs Date: Tue, 30 Jun 2026 11:04:41 +0000 Message-ID: <20260630110443.12900-1-muhammad.kamran@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C5:EE_|DU0PR08MB9845:EE_|AMS0EPF00000198:EE_|GV2PR08MB11953:EE_ X-MS-Office365-Filtering-Correlation-Id: 87f65a23-17a1-41b4-7bb7-08ded697903a x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|376014|82310400026|36860700016|23010399003|6133799003|11063799006|18002099003|56012099006; X-Microsoft-Antispam-Message-Info-Original: vQrT97OKYOi74DexUG5zFSaahXQxDJ7h1rxwCBf7wqnE7HpBad8w59v0+qLM6D85Jkup6eJTHmJuAofAdVjLSyz3ynelGrdwIs+zN/AN5r8ayEpSz5pm3mjOscwCPs3wcLoLl+Tq5NZaE4beNftN5foa+fWS45G6XsxoxY0Yax370ym6ZPF851UkbyoA5bsitaPze408ZaVFZJc4QUpAPwYrzpTZYiYleDWOc0QxHJHP1OM7B3pgI9VvdYGE0T7fFiqHdJY6MBdYtx50F5JqC+cIdpPT/0KHdW/xfNZgHzgXXbT9L4H6zSGOoZjnouUdhbY5h70DskE5IetDmg1m5ZXp6elC6/AXVbeYVLObx0AZfDV05EA6nC52nAL+NJ9Qgh77ltKy/BsJJH+VXItc3t7b0DT7In62uMJlJoCG9oGepC16yGeYUkFim0TNuW1GonS/MoHd51kkbsdRh+qEHERW/f9Bi3OLd+qjDK3it6y3OuqY/oB/m5Y6kmmZ+fE02ve+u+tuTpWnBrDkHjiPE3+I1PMbAmXCVf+Igl++cC+E+sJ/v4d/dTmcnrj5YfUXIz5esyqz78r99L+S42ge95NR4fE/aQJPpZ0qMswPkO6gt7FPTRhdYnG4cdP2ebxW8iySLxqD72cSqXqBhP59jKKq14bXlyBd/Ge6X4MiRIM= X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(376014)(82310400026)(36860700016)(23010399003)(6133799003)(11063799006)(18002099003)(56012099006); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: D2ffBuUOh5PzVfrQKKFe7X0TZVhlu4+vuUU6HQwm2NKg27lxqZH4VxsVy05ouLLc9BneGDH3M0PZmnI4TacL9YNS0JgZ3qC8OStB4oEI1bU0hTyCP0ogggO3aTLGBAjHIrjBWYRpfSnUa3VUv6OLWtkrPO3IP7MjHG6tMYnmxonIt/UPdQnCuUR4SBufd4GWmaZHzHI9Nwi/3gYINSnByk6XWrXxqpumh82SCnFKR5Rt9TeKt5hpm7qFZkCQ3ncEfglmYFCJR1OpaBw9qPMS3nf5DmykbnF+2Ccc3i04bx/2QWOhHuf+ciT4LqduEj9Ii2rIvE51MjUPuZY2rTLVug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9845 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF00000198.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: dc80cf77-6c89-4186-0fc4-08ded69768fa X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|82310400026|36860700016|14060799003|35042699022|23010399003|6133799003|11063799006|18002099003|56012099006|13003099007; X-Microsoft-Antispam-Message-Info: G8S3ZHgBdMQ4mW79e2WVJXw+mBHuFDx3qZ2Yg5m+PN9PCaEKRhxuhdlNGGjdcWpsK5NspIYEkeaUdeZbCSYG44SU0Qq7WAFUtsHSBf2bd865v57geYI2T4Yn3pVW46OGvSo835O6dpCIf3p9xYghz0oz34YseGytDzh90fZqA/mMvBPXzR+hw3jvCV4Z8v+FzekIwttILKX7TTHIp/ZEDdAF98DW5R3eqx8uF0Ecn+lDpG3yjB5cTMN/L/T1W+tPXeDIenZfIQOc9Gj6/pdyRu1SaaDM3l6TGeM6IzjuP9ZVpkRX+JiTj0CdOfadIK5pi0LObu5WB639jORHhCOOErxTSvzYHkt3xfrU4ktZddyYf9qki92IwmV08S+HjWk/SvyKSoNBWA6vyeEZxb7/j6c3nm1tTJObgsyDi7Jly8EuudBokvTlT+RAG4IdomS3PW+5xx0Vc9/TgKtPJ7FSS4gL8We1uYVHGDffnwU+ML5cgXciqkT9gT1Y1AwlpLWLZ7UvnOxn6ST+erNrPa4m3fYM1LkZTaO2589gCBFZ6A5GY8+Qa+55WX1ZLQ5P/n/U067N99pHBRtG7jYttodDNn6xBMeM3ZzRd/IMehLKMYsDPsweC7t50rWva9N8bCNgg/Nj9FU8rVuKo66xKvL9TymjDduZSeOAimMTLj7ZYsw= X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(376014)(82310400026)(36860700016)(14060799003)(35042699022)(23010399003)(6133799003)(11063799006)(18002099003)(56012099006)(13003099007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oqCbCYJHUO9JJC5KWwM+uqHCcYjyLka4sHDRXdlc/RqpBOhwQCNl12ViCcptY05et7Kr9jB/ylTBGJZm0CjxDZJQyBe+teSSkBH3OYe50tnrTviqMu+IcQ7MT1bsgGSE+7fWYDNRZAobG0qpBTT56eS3zuJiC+GLsV6rGhuVIc0f7ChW5Vbdb/AgYlPCC+syUWST8FvTAbS6KxQsgxqWTQbdcguD9OUriNWDIQJgdtFsN+7U82D0av6Q+0MOVrlaiEVnrCGGHSONZd1g5Uhuq2Bx/cJ4+E/BKmezzE4CNGB99W4iYHdphK7UuMCLC+R4eAXALvp4SC9srw9fcr00Mpl1D4CaUu0Jmb5PE34wl+nlJBEJd1fEPM0n7FfN6lKI0rfxoF21x6nMG24ihUI8amRpJvQf3MPJWY1/S1BlTmRyfYwyo5UWhDmp3Hf83PoS X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2026 11:05:58.0420 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87f65a23-17a1-41b4-7bb7-08ded697903a X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF00000198.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB11953 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This series fixes a GDB inferior-call issue exposed by malloc being a GNU IFUNC in glibc on AArch64. The underlying problem is not AArch64-specific: it can affect any inferior helper found through find_function_in_inferior's minimal-symbol fallback when that helper is a GNU IFUNC. GDB calls find_function_in_inferior ("malloc") when expression evaluation needs to allocate memory in the inferior, for example for string literal arguments. In the minimal-symbol fallback, GDB created a synthetic ordinary function pointer from the minimal symbol address. If the symbol was a GNU IFUNC, this lost the IFUNC marker, so call_function_by_hand did not resolve the symbol before calling it. Patch 1 checks the minimal symbol kind directly and propagates the GNU IFUNC marker to the synthetic function type for mst_text_gnu_ifunc and mst_data_gnu_ifunc symbols. The existing fallback address and return type are unchanged. Patch 2 fixes the follow-on return-type issue after IFUNC resolution. When the resolved target type, or the type inferred from the resolver return type, does not provide a usable return type, find_function_addr now keeps the original function type's return type. This preserves the synthetic fallback return type used by find_function_in_inferior ("malloc"). The tests add an internal inferior-call case using an IFUNC malloc and run it through the existing gdb.base/gnu-ifunc.exp matrix for resolver attr, resolver debug info, and resolved-target debug info. Changes since v3: * Move the ifunc resolver into a shared library. Changes since v2: * Rework the minimal-symbol fallback to check the minimal symbol kind directly as suggested by Simon. * Add coverage for both debug and no-debug IFUNC malloc variants by using the existing framework. * Preserve the original IFUNC return type when the resolved target type is unknown. Muhammad Kamran (2): gdb: Preserve IFUNC marker when finding inferior functions gdb: Keep original IFUNC return type when target type is unknown gdb/infcall.c | 12 +++- .../gdb.base/gnu-ifunc-inferior-call-final.c | 27 ++++++++ .../gnu-ifunc-inferior-call-resolver.c | 43 ++++++++++++ .../gdb.base/gnu-ifunc-inferior-call.c | 37 +++++++++++ gdb/testsuite/gdb.base/gnu-ifunc.exp | 66 +++++++++++++++++++ gdb/valops.c | 5 ++ 6 files changed, 188 insertions(+), 2 deletions(-) create mode 100644 gdb/testsuite/gdb.base/gnu-ifunc-inferior-call-final.c create mode 100644 gdb/testsuite/gdb.base/gnu-ifunc-inferior-call-resolver.c create mode 100644 gdb/testsuite/gdb.base/gnu-ifunc-inferior-call.c -- 2.43.0