From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id vupDCmdlMmrcsgsAWB0awg (envelope-from ) for ; Wed, 17 Jun 2026 05:14:15 -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=e3uUmLnP; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=e3uUmLnP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1855E1E098; Wed, 17 Jun 2026 05:14:15 -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=ham 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 BEB931E024 for ; Wed, 17 Jun 2026 05:14:13 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0545E4BB24F8 for ; Wed, 17 Jun 2026 09:14:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0545E4BB24F8 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=e3uUmLnP; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=e3uUmLnP Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11011019.outbound.protection.outlook.com [52.101.65.19]) by sourceware.org (Postfix) with ESMTPS id 466854BB24D7 for ; Wed, 17 Jun 2026 09:12:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 466854BB24D7 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 466854BB24D7 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=52.101.65.19 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1781687565; cv=pass; b=Mars4tqU5aYi3GyPIo44jKMYr7YES1Xsz3peBg7hL9jG0VffoQCLvVJ8lzzZyJgrCvSPjXBjJeuqi8yAppYs+vIbNX+Uzghu8S3iiJt1MJ1S+qHWnG95Up9HA5mM0p0Uy48x8WtRWJtkuYzkA6foCrkjayukHxTB703HIWmSXbE= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1781687565; c=relaxed/simple; bh=+wnnWiQinYnQASD3Qz1j2hi2LlN+c4KM2yD4dj47Gvc=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=rc0aqG4DMEaGbRsQSQO1p+JfAeM5z6mYIrWaz0kxapozI4ppkX7LCIPEyRHGFM3BtbNnYsDUCRYaKj8D00EHZnreiMsByOnvqr5FMyd4Xd++coOfcgxSypuCkUprgeJF3LxOWAVnK/E0n25SnpHP8fItAhwERodWLiSeUGQ4Iow= 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=e3uUmLnP; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=e3uUmLnP DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 466854BB24D7 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=lqmmg2j0xDPozlGxuHYdsxwoFeKfbE7ecEofuUS2unO9B536/9fNPwmprzzNrKVsEnrV5MCKivYWFPeR+MQk7eunqKSCq46jruH9LFkWKCQp1Gw6vbLQpmZ5VeER7NqubvbaQ3wC3IFupWioHfx4rMU5jeoQLtxjlnsQUaFVi23IhO59i+WyIoc/pc6SlgkzjqqXK81dB1Q8P2n0Iv4OPI87EAnJacg6cMTZyaX0ddkaRmnyBe7PQX9Ljc1BBQtr/JU1xUoKJ8d2OQfowf9LqhXrj+VDegOv1HZv9MSPMcSGOs0/7n6Jp2du1E+yGQhLpMtSe9ij4yqVG+x77tso2Q== 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=hVSNeR/b2DraTOv84v2HTvSklY//mnIoNuApIInfXBQ=; b=osXdmDY0c4gTUCERdiCG/xdK9B80vz6ucoa3o/KOxTpWu56DKEyzLAp+PCjMVa91IJw/QqzwRkwERCHLEElGtMWCTBZYF8h+3DqgQvMlCpfMPCN8bvUwVmNpp0imbeid6lZd4b0QW7RvFlJThFBInTN3v3BAt94a4RtPVVLTHIySrUGMXaC/jLvq5OJGC47FO0vps/6qEHkM0ye9lR/2pR5mHePrjUmlrCAAnSfpzMOOkw1g4uHF88OdVTgMr3Fl1bT1XSsIDfYEFpFHggrncTtDLVmtDvg3kZSCy5u7qyjXrlKsVpCYOTU+4mvAZ27MUPXoa/DHcWP25CVD1AOU9Q== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=linaro.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] dkim=[1,1,header.d=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=hVSNeR/b2DraTOv84v2HTvSklY//mnIoNuApIInfXBQ=; b=e3uUmLnPI3N8ICNVJQL7w1dQoiMQYBLX65WhdJL9SfLCcyRw73h+alFl2T1cggOFcw0HDreea60npmZP0i8M32dQavN20AI1FnD0+QG1IgwYtkAyUQCb5dm+jSTALUGYwc4VioECu0rJh5tWLeY51B+3zbEk2AXhbysJefgovFY= Received: from AS9PR04CA0131.eurprd04.prod.outlook.com (2603:10a6:20b:531::28) by VI0PR08MB11450.eurprd08.prod.outlook.com (2603:10a6:800:303::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.113.18; Wed, 17 Jun 2026 09:12:39 +0000 Received: from AM2PEPF0001C714.eurprd05.prod.outlook.com (2603:10a6:20b:531:cafe::53) by AS9PR04CA0131.outlook.office365.com (2603:10a6:20b:531::28) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.139.11 via Frontend Transport; Wed, 17 Jun 2026 09:12:39 +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 AM2PEPF0001C714.mail.protection.outlook.com (10.167.16.184) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.139.8 via Frontend Transport; Wed, 17 Jun 2026 09:12:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LObO0Nj92Ni7gIg+OpEEshHo+nanfIBguSyOqh0nUuQHTbWJEI5V3BIkREwbl8tyC9HT8ltzMb9tp0W1YPJPedWCBbDnkoR0vo45DmhFhqesrqQX713YaYBh7v/mPM8Dh3N/rM3mriAWsjyKSDEPC8u5CIoMMWcwJR/aPrdR+rx2LxfLL0qxHj/JYJatejAhfV7dbo8e4SFWrAgFeVqFpo7aZ3J9GwZLe4xoPTrMwD1MsP2w6dxFUnRQ9sK09WAvVu9MUE+Eyw9FLpewbI/STJR2FdFuyHnew0hMyhDRZsU5gQiWCfxOKRHqx408keJevz5E0hn7aAFUEIcP8Afq8A== 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=hVSNeR/b2DraTOv84v2HTvSklY//mnIoNuApIInfXBQ=; b=mhX7apk9f33WONUz21P/G5lQInVoxI6+iu1wrDq9t5Z33+sUbfsdhjQcqjappjVDtgwP6wVLh4aQKohOMC56cGeV4Idlenxb6l+PqobxdbQtBtIJztmTs6QVvML3Fd/Ga9fw/fnkRul8Avt8BQvP4+H+Qka0tDVPgVvEVmj3ntE1Gwj/j7ET/mSkYgIWsdglR0LPDaOdvAMgIsZ0JNW+jtXZ+pXNLNHUQIztVfnC7QTxB/kBItW0Y4tOObR5H3/GJKZvjuhmsblQRVVkdL9hHSXC91a5NcUttx/aPvFJTUsFqW1wBgjcZwEvVHdZ9hTBKAwoLGW/KiAnZbeTbGtRdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none 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=hVSNeR/b2DraTOv84v2HTvSklY//mnIoNuApIInfXBQ=; b=e3uUmLnPI3N8ICNVJQL7w1dQoiMQYBLX65WhdJL9SfLCcyRw73h+alFl2T1cggOFcw0HDreea60npmZP0i8M32dQavN20AI1FnD0+QG1IgwYtkAyUQCb5dm+jSTALUGYwc4VioECu0rJh5tWLeY51B+3zbEk2AXhbysJefgovFY= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DU0PR08MB8663.eurprd08.prod.outlook.com (2603:10a6:10:401::6) by GV2PR08MB9423.eurprd08.prod.outlook.com (2603:10a6:150:df::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.113.18; Wed, 17 Jun 2026 09:11:36 +0000 Received: from DU0PR08MB8663.eurprd08.prod.outlook.com ([fe80::f957:cec9:ec8d:7968]) by DU0PR08MB8663.eurprd08.prod.outlook.com ([fe80::f957:cec9:ec8d:7968%2]) with mapi id 15.21.0139.009; Wed, 17 Jun 2026 09:11:36 +0000 Message-ID: <300c2d55-c729-4f65-8f35-f0c15500578b@arm.com> Date: Wed, 17 Jun 2026 10:11:35 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] gdb: align siginfo_t with the Linux kernel definition To: Thiago Jung Bauermann Cc: gdb-patches@sourceware.org, Tom Tromey , Andrew Burgess References: <20260612101610.592338-1-matthieu.longo@arm.com> <63fce133-4d28-4629-9a60-6d14cba49b86@arm.com> <87se6lhf87.fsf@linaro.org> Content-Language: en-US From: Matthieu Longo In-Reply-To: <87se6lhf87.fsf@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0196.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:318::6) To DU0PR08MB8663.eurprd08.prod.outlook.com (2603:10a6:10:401::6) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DU0PR08MB8663:EE_|GV2PR08MB9423:EE_|AM2PEPF0001C714:EE_|VI0PR08MB11450:EE_ X-MS-Office365-Filtering-Correlation-Id: e0c5bba8-1e53-4ce9-6a2e-08decc509498 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|376014|1800799024|23010399003|366016|18002099003|22082099003|5023799004|4143699003|56012099006|11063799006; X-Microsoft-Antispam-Message-Info-Original: KFOJ/rj13YJWAtKHGM6tOOz0By+TsFVcUzpvD1DE8/GiZhCzraEHQFl6cGZsamJVPCJcG11j40gYo/vvGkVl6AoBIe0DsdNMjqoVcdQMYqD4EdjKHK0kj0DCziIMInQag8kab3BGFbLpBhVxWyNehCpauC1zCVP++nw8F8W0B5dBi6q5ZmsWvXXdrnxl9++HlCf+odkJkzlb52L4SEq8ucmKNqmumekNEtfYMJr2PBW6g/g9MGk+q84fu8H/UPh5ayoURqanJfR0e8L7cdwkEdwbvfDj9T0Ej/XqS6lelhiu4dVzP0nbKdsqAjHiQbI9yOy400e2W5/eKBjzYKwlfidlTK+Uo+VBdF5IFGpximEEZtJqIjE6luqHLVV/tnwPmFfH/d9Q1da51GwZMwpRRYsibQ3YXxQ+TYXv6Mzr+McsPMeH0jMbFpFgjyDalsWrPgHhbuDKwdB7wj6qmX8tlSCYUPk2zZlibAVh4Rro3r9kXOyxCtzyZa8GkCOKn3dwI/238MZWNzSGfvzHLp81C1TbBfCXGURnq1Tc6v95Wd80YG0QZi4M8PsPmrsN4C+RovIdS6lpRRWwhS5DnKEd8waVJTYueD8oB+E8di99dkym51gNYh252kHf4V3bvQHvgA1pF4nDjEhMfLznRxVnN8+m9gRuYpTpANlDMqQQA+Vxf5jG9wmDuVvePJosML0X2I1V32wnFYkIoLdRjvsQCw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR08MB8663.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(23010399003)(366016)(18002099003)(22082099003)(5023799004)(4143699003)(56012099006)(11063799006); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: VOmTJZpTPkDU8AEphoCZOqicrcS6+qcfrm5I1fXuAEGyOrk01cEgrtxX3ptgRinVqD2899/vjNJVsbsh2b5KYNgtSttSC+xj9anNm5VRNpFq++ZXGOHRsQNPjynt3fulvyVSc0SEXw9rnBnbYVdGCC/wmhyeDlYRGqLb2IulgM4F139RZLCYzy9luJ9YAYV2wNnax2ZFKm3VWQPOaGFcGz2gTCSKrp9ZzGjz3J+aMFmD5FDJRChjbuwXp0+bHwjjCIRJN1keqRYKQlVhL5kydHsk9hzlct7xYOpb9o1bW9FtU4pvzE5Z80JgvcPjPwYUHgU1elBiIbuPg2RUByab4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB9423 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM2PEPF0001C714.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 15b4bd36-1d5f-40f5-6c75-08decc506ec1 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|82310400026|36860700016|14060799003|23010399003|376014|35042699022|18002099003|22082099003|56012099006|5023799004|4143699003|11063799006; X-Microsoft-Antispam-Message-Info: R79hyDCGPrfK0Vmicd/31qDL9AFqo1rUOOSP+dB/GxAT2h0ALB3zIRUWklpwkqyMc3wRNsbktwBsMFOwgMi823yYE64kGxlt5lchGOF28Lm1zmuCmM5BaupvYFzGGoUyo3Fy2ZrGkz81e0Rll09/un7zATaIqByg6ydxIi7aEBsk8lk8CglwbMF1M061iTU1DJxtgYAnc5xLh+MctHEKS+XqjSsrzeGsd06WLLNogdAMCB+dyNfH6tm/4lFz2ljhIWo20RK9Q3MvM8GgtZVvOTdFD/xdJF/e2QZsudd0I9cqgGo17rewMopiTSkZW7AfPUAdVELyDwTnbcV3llXCv7nU7zXO4o+cKdEzPR3f8ZjGBTzXAypxbsXSudYjib3PruqG+tFgdsy5Ktq1a9m72vqozEAALCzapbpMOeTb4VTAokEPK00Iw8fBOOggLllqPsqXve5F5RqecawVCBb/5c2DI72o7zWy7QnaBMw2KaOr+isgiQWwCUmMcWPxRYbph8Bnz+GeXUs/7O+uSIEUAAdq82QKvLMajTkmHAb7v/ttGzpuDcYvGeTgSmTa5Z5Q+HSfEST3BaUKPCf13wxzeynmD4OjqhfyxymNhf5G4UEGuy6gnc8H4rtjiJy5Z6yYAoNQiOreHXP1MLNEu6mlGyxvIPUgE161SLDGgAL4nBAW4buaC4+to9JqzjKmElv8Nd1tHxN4PZIsTzpY9FRiwXnSml/BQ6YNhsDalxjDcWQ= 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)(82310400026)(36860700016)(14060799003)(23010399003)(376014)(35042699022)(18002099003)(22082099003)(56012099006)(5023799004)(4143699003)(11063799006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DiUi0ckDbO5cJjUTxq8uza2mBze6lrlhOHXkBlw7txCK5rSGeOKPq/mEtXclDGf7l7HMPafWw7y3noQh0v16CPvmKJHDXbdz0cZsl4/qKvpgzFo1o9m+tuqGcqUdx1w809RCFbtgTg3vHAZrebiBdzsOX30Ht9Uhuru9J6nTRrmFByadi5+wsghp+LbCkKX3pzlsDZvTIQ0buTroMWDXTFBDS4t4sv4N/el9RutuVBftA1t3LnW70kbachmBPtyCUuNSJGi96Q+bRIhX3QQPZJx4+DW2p+Kj/Pk1wOoz+dvd9Bk2wsLRDIIXOcxUtW3cXAj3RA9ICSXh5u2Sh3tJ2VE9NNgz2PCphjUdlMJvRDfi/7SBn9nGPB+pVcoTtBjH/Gg00uOCwYosfUi4Pd4p31OstdWtm4oQGWON5PYFynz68s7vT/fee6je4DZTUWXU X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2026 09:12:39.4689 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e0c5bba8-1e53-4ce9-6a2e-08decc509498 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: AM2PEPF0001C714.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB11450 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 On 17/06/2026 07:07, Thiago Jung Bauermann wrote: > Hello Matthieu, > > Matthieu Longo writes: > >> On 12/06/2026 11:16, Matthieu Longo wrote: >>> GDB's current definition of siginfo_t is missing many fields present in >>> the Linux kernel definition [1]. >>> These fields are useful for providing detailed, user-friendly diagnostics >>> when a fault occurs. Some new AArch64 extensions, such as Permission >>> Overlay Enhancement used to implement Protection Keys [2], require the >>> debugger to inspect 'si_pkey' alongside 'si_addr' to help the user identify >>> the problematic key. >>> This patch aligns GDB's definition of the __sifields._sigfault member of >>> siginfo_t with the definition from the Linux kernel master branch. >>> [1]: https://github.com/torvalds/linux/blob/2b414a95b8f7307d42173ba9e580d6 >>> d3e2bcbfce/include/uapi/asm-generic/siginfo.h#L69-L100 >>> [2]: https://lore.kernel.org/all/20160212210213.ABC488FA@viggo.jf.intel.com/ >>> --- >>> gdb/linux-tdep.c | 39 +++++++++++++++++++++++++++++++++++++-- >>> 1 file changed, 37 insertions(+), 2 deletions(-) >>> >> I was not sure who I should include for the review. Please feel free to CC the right >> persons if they are not already in the list. >> >> I tested the patch above, and it seems to work fine without any change in ./gdb/nat >> However, in my understanding, compat_siginfo_t should also be impacted. Why is it still >> working then without any change ? > > ⋮ > >> aarch64_siginfo_from_compat_siginfo (in gdb/nat/aarch64-linux.c) and its friends for each >> backend seem to provide some conversion logic between the siginfo_t from the system >> (/usr/include/asm-generic/siginfo.h) and some internal representation compat_siginfo_t. >> From my research, this seems needed because, if the host and target systems are not using >> the same ABI (endianness, size of a pointer or int, etc...), GDB cannot rely on the local >> definition of siginfo_t to interpret correctly the data in the blob that it received from >> the target. > > compat_siginfo_t is used when the inferior is an AArch32 process while > GDB is AArch64. This will cause the 64-bit kernel to use the syscall > compatibility layer — and thus the 32-bit definition of siginfo_t — > which GDB's compat_siginfo_t aims to represent. > I imagined that compat_siginfo_t was also used in the case when the inferior is an AArch64 process, while GDB is AArch32. Hence ... >> However, I am confused by the definition of compat_siginfo_t in gdb/nat/aarch64-linux.h >> for instance. I see that addresses like _sigfaul._addr are converted to 'unsigned int' >> (that should be equivalent to uint32_t I guess). Why is this working ? >> >> Please, could you provide explanations on the above, and guidances on the changes required >> in struct compat_siginfo_t ? > > I'm not sure I understand why it wouldn't work. In the example of > _sigfault._addr, it is an unsigned int (equivalent to uint32_t as you > point out) so it will match the width of the void * used for the > corresponding void * field in 32-bit userspace. This is converted to > siginfo_t's 64-bit void * in aarch64_siginfo_from_compat_siginfo with: > > to->si_addr = (void *) (intptr_t) from->cpt_si_addr; > > Do you see a problem in this process? > my surprise when I say the definition of _sigfault._addr as a uint32_t. This would not have worked in my understanding. Matthieu