From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id xvEPIuXcK2rQAwMAWB0awg (envelope-from ) for ; Fri, 12 Jun 2026 06:18:13 -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=WCZFuS01; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WCZFuS01; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 79E3F1E098; Fri, 12 Jun 2026 06:18:13 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,RDNS_NONE autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (unknown [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 3541B1E024 for ; Fri, 12 Jun 2026 06:18:12 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82ECA4B99F44 for ; Fri, 12 Jun 2026 10:18:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82ECA4B99F44 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=WCZFuS01; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WCZFuS01 Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com [IPv6:2a01:111:f403:c20a::7]) by sourceware.org (Postfix) with ESMTPS id A29204BA2E26 for ; Fri, 12 Jun 2026 10:17:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A29204BA2E26 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 A29204BA2E26 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c20a::7 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1781259462; cv=pass; b=VskOKhm9FhL5PTvxlzvAiY7CllM6OBd1ZwX3a5V//hWLSK6tTvxNyaG896MaI4AwsLpLkNFvAy8ZWMMwV0Q0TYD/ngq0SeRRkv+papZh7HrBg6xfZM03ahjux46SzdRNKP+bGocxtEEPOUkwYcyTISOb2DAiEf1q4RYgEqghVE8= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1781259462; c=relaxed/simple; bh=6klR1P23EjCcwdniHVgo8vGcBA4HDKP1wTu1Uky3v3E=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=nB5eRHKJbJ5KXHX70B/tov8MsFiXchEKfNFxQZsFbmuERDoo6U52JdT2JJucOjt4owKT/cAZyp65neHvGz10OyZP+NSX15b6gV2AhKr+1/44iD7rfW8Bl5DxOagTobh5O2UB858qGTqYcpR37RAckxp0rGbVVjdLNUaIK7O90pk= 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=WCZFuS01; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WCZFuS01 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A29204BA2E26 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=x0pJ60nF1qM7g/YHWnKn7zflWZP39xeAP2uuY+YJoInc24ECQpmLWONjIJeS/W/mjJvegHkcpfJGYN+kVB1VhivupscwCmszVyygJKq2zzOHEGiHwvjhv1C9oGdX8TEdcJQ9uOGE9WXUUNR+SCAjpGH7MnRK/q19TimOCCPyArHGD9/snL4nDEYYAjT9S3pZe7H2nWFr1mTQJNyPFnm6mAI60sChEVAEtTzcG6BPfY66y9iXnw7tKJmElO5xKa74dwloTemBcBufdbZu7RSmQPUhzDp5jM/UryXiOhfZFCpXJL3lnR0PaAD0rQa3kvx+W5dtTfCDrxMlN7xDb+RH+A== 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=9zC6ZLuqxb+AwdsUf86cMCqVEmFVXhab/Q2TDK7UCBU=; b=MWJPCfFblUWzPxge3wn+3q44thcLzdwjpGuLluzHVWFSLxwqqYlzB2TLQ8zHLUgEULIUrE3eB8RDPqArdGD411LR8idYMn5dB28jqMJAJyE2zG8rqiQ8ErNhEXRdeA3jJ0MoQ1nq8Cl+djctAh5A9uz3xCVfBM57ZqhNiA9SMX27nwsl8ZQcYRrERhqJ0A+PzQoTvi61BC8VobAfzxBPJu46a0D1EZMtMoNYxVJSXgDt3pJ+4Vzku8pYD6zGd0cOzpr9xPwCiakvg8JGoyV6hfwUW5vS6D7H0jhfeSpxqoIuis2BhSNyxGfeExuwZJqZUocgZgPDG3yRyzEFCYKZ9A== 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=9zC6ZLuqxb+AwdsUf86cMCqVEmFVXhab/Q2TDK7UCBU=; b=WCZFuS01eHG6sNAvcScuTTzCSv7uwYO91ZzcSCan9VLb85r0aYZcHW5O1CmJBVBjMIVawHWDQeFrq0StbL9YPK/XsuSGl9fMOyjBROldOSz3Ys0tirLVDsMIFr651lJlqAvMzhGZIZE+z6TZKUdNTZ18HquNRFqUhowwFEl6Wbg= Received: from DB7PR05CA0011.eurprd05.prod.outlook.com (2603:10a6:10:36::24) by GV4PR08MB11578.eurprd08.prod.outlook.com (2603:10a6:150:2e0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.113.14; Fri, 12 Jun 2026 10:17:32 +0000 Received: from DB5PEPF00014B97.eurprd02.prod.outlook.com (2603:10a6:10:36:cafe::a6) by DB7PR05CA0011.outlook.office365.com (2603:10a6:10:36::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.14 via Frontend Transport; Fri, 12 Jun 2026 10:17:32 +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 DB5PEPF00014B97.mail.protection.outlook.com (10.167.8.235) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.7 via Frontend Transport; Fri, 12 Jun 2026 10:17:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wmIUQgTsUBptC4skvhsOKniqQGogncDszd0P2jfrLvZgQl9zGGg8/RlEPxY9P8ll1E60WsyZcg/ftb6clLKP20gEVMtsAjC3m90Zwi+POhhlQsgr0w3zl83NMyflUOqB0hhat20Yc6sUaCrZoAbz0eFRhy98MYaZ+IiTg6jGrqnfxBFC8HFnfZggiCfXt4pDz+jzWR7TmJEqWG6yPBnk035UzZRXHhE4Bv2roggYcAjAv4NYfN/luSeeqZBhxK2Z07odJwZFoxE6SIs7pPeLQKclnOtvGIM2J4N/NBQb1IpJrjq8ma0WUxewA+VckXuHCRGbHqGHg9+lvm40QQqv+Q== 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=9zC6ZLuqxb+AwdsUf86cMCqVEmFVXhab/Q2TDK7UCBU=; b=sqt/ZYh95Qvt39C1uvZmHndi4NL/3FiLsTMcDRqkFM/uYwB4qFSGVqYMKjfzGjZuNKJvW6eLikUcNA30qVL4NoQH4UBbVg2L0wSFpzdmEgscPpe/DVjempHJAQj9qfHh09zJ79jjddasblHZJf8yqTLa6kKMctEro0LEEzjCYy5MinE7SJ8/jfitCUOCK5B8FvKZfxf89AMMdDIOowTTki06S1KHoOFycxHWgbvefUHVMfT/Uiux9jRf09bF6r4F/vXyo1ZPF9eZ/amoyHt81RHfNL19QLHJpMasw7ZKZM67rSZxYHuFYJJvprLwfL9LlHp4IP8spoLICIQaGT4dbg== 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=9zC6ZLuqxb+AwdsUf86cMCqVEmFVXhab/Q2TDK7UCBU=; b=WCZFuS01eHG6sNAvcScuTTzCSv7uwYO91ZzcSCan9VLb85r0aYZcHW5O1CmJBVBjMIVawHWDQeFrq0StbL9YPK/XsuSGl9fMOyjBROldOSz3Ys0tirLVDsMIFr651lJlqAvMzhGZIZE+z6TZKUdNTZ18HquNRFqUhowwFEl6Wbg= Received: from DB3PR08CA0034.eurprd08.prod.outlook.com (2603:10a6:8::47) by AS8PR08MB9906.eurprd08.prod.outlook.com (2603:10a6:20b:564::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.92.17; Fri, 12 Jun 2026 10:16:29 +0000 Received: from DU6PEPF0000B61F.eurprd02.prod.outlook.com (2603:10a6:8:0:cafe::69) by DB3PR08CA0034.outlook.office365.com (2603:10a6:8::47) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.14 via Frontend Transport; Fri, 12 Jun 2026 10:16:29 +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 DU6PEPF0000B61F.mail.protection.outlook.com (10.167.8.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.113.7 via Frontend Transport; Fri, 12 Jun 2026 10:16:28 +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; Fri, 12 Jun 2026 10:16:27 +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; Fri, 12 Jun 2026 10:16:27 +0000 Received: from PF4S4363.arm.com (10.57.38.150) by mail.arm.com (10.240.25.137) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Fri, 12 Jun 2026 10:16:27 +0000 From: Matthieu Longo To: CC: Tom Tromey , Andrew Burgess , "Thiago Jung Bauermann" , Matthieu Longo Subject: [PATCH v1] gdb: align siginfo_t with the Linux kernel definition Date: Fri, 12 Jun 2026 11:16:10 +0100 Message-ID: <20260612101610.592338-1-matthieu.longo@arm.com> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU6PEPF0000B61F:EE_|AS8PR08MB9906:EE_|DB5PEPF00014B97:EE_|GV4PR08MB11578:EE_ X-MS-Office365-Filtering-Correlation-Id: dd204820-ec15-4ba7-4572-08dec86bd0ee 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|23010399003|36860700016|18002099003|11063799006|56012099006; X-Microsoft-Antispam-Message-Info-Original: ENMo6XNhaG5yt+NuhMZIlmoH2VDNTCFGikmLjC7svDoxfN23/N1NDumwC1EByxsF6EZtJ1tDhRzT25Pd17hSDjcISu+dUkdzk3RvJ28iMSYtwv3F0vOPJsW2aAGsI/11JiKl2dTcvwZPZvQ7SZF6LnEtvolOL9Vvb2gwQbCLU/R3/3RjiHQkKh4BW25UvRpLeuSLtuhHcs8APNfMeUbSNW6+KxqR0DNKMCGg3nb5EImip86snJlj0his0ekfsZt37MllnEWWgLFNafApjkuxlshkn2Xfqhry5qDopZxcWot5fbumXQEwx36LyWrHgnV2D1Z5FoD4QOE2i9u+Q9Jhzyjtw7OThco9Gz6OdIeVfU3XQxhIUH1PazfTy1ru5ZG+KZbdbBT6Nubkz+tyRVf6cqaazaCFc4Mqj2kGoymtGKPP1sUnApW5ao5s3dTkwW1mlheyYoCqMEK5shI60wk6AwQsHqrvV51GXx9nsamCoCb1b6pz5lg79fezXxitdNvy9n4Wo8vL2xkdbQlmVVS4BIZoYPMdihmsEmg52RY/fRgpR5plCtWLCYfcp2K8zUWz83O1U925wR1cEI2Ai4D1iYXy0urY/ZI/Jvocy901NlpWAanfcw1yQVWfoH0+s90f2vb7l60AEcK211C7egg2YKeoRrPpcNN2i++V5OrDJkqpM6tNZzbdw372O9rZ4oI19To9DSDDg63EJtvzhTohgSDzHnQ5aoPy96JCtqyYMyc= 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)(23010399003)(36860700016)(18002099003)(11063799006)(56012099006); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: XOHEyrMyxIbGN1zud3rTEMbxmU03GMWDVHhnR3MyAouYmTNiFBia/4Qmyop11rQ5BgKAWIGSfHghdPZ38ANf8Cz/1LH+JotVDbaYH/0vWtg098glUAWo/0LkzLU2xF4BQGu+Lj0dnxJVPFYm5i9ZJ1bKPStLriWapM2HcYqwF7NAyiPsGZfLmQP3YTcb+MXU//LLThu6og5tic7ngS9y1OulroEDz4KsCKulj9DGZTZH4GW/E/Bq9fOkfxDM3W+1JUO2j9cZyKU4B5m2NGXSLN6w1hBHd8TGND3/SQukjEG0DGb5Ucw8BwJnyqZ2RmPSFqQ0bph1btUYJMP2i6QbTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9906 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B97.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 5ca73b07-98f9-4bae-65a3-08dec86baa84 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|36860700016|82310400026|14060799003|23010399003|35042699022|18002099003|11063799006|56012099006; X-Microsoft-Antispam-Message-Info: msOB/mom4Cf3oqqilyfotZKiD4CZufT15wm8dyfLlKKxO+RbTCn3BVNA4VdE/EMuA8eFTEyh9Bv+rV1v1wUBTO/04UbYfln+cNkE+ymi9I4t7pckt7Ild3w7b4EdxeDJMKMNS3XWo6my1ie0UzeWn0GwadEmmSJdm+PFSM9pqde/0FHT/IoeTWM97CXHFTgATnxk/JGhdRwP++fuEuPpYopROqtZETBooJfsdFWPK//OfeaXxjjKe+wSDpbyFNIeQwBtAzSigegIHKKbJlkcptpvlntxlXsXR5jX5L5Nh+wJ36ST/yigAMv8CNvcdA+McelRQwxNDGWarImV0gcEk6/QoiIOUUjY2MXnd62yAZ8sy4vnT57DJleQNRlpGZd+mrMgYE2upwzLKWvo0M+Q2YIBYAMFBF8irzu5InpTYh1MXKXG/exjZAB0VAWdEtv5R2ucxYIhT2vdI+1EE2IixeelHPs9HKqnjj80foxdvJJCpp8pTz/juuypSEoKQnXJ3oF2k64YkSehtE6LfbNvursXujG/tCzEE3eUIOiY2pGHwr5W64pvJAH2YeKsflLz03/KXzMziMXXZ7LqbYW9MrYF+OfSw3ctsuaPhw3PBRS7q4VUEXdSOoUW1YU8JuttAr4w68pT4dxtblA7shQssJjtamsDDDXFO281zfmjGcaAJpsVvH2Pt0PLI4VpiNvykXblZEnRDpTTa71wJctjX2cW2VBN9M0KmUXqIq5Ys8s= 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)(376014)(1800799024)(36860700016)(82310400026)(14060799003)(23010399003)(35042699022)(18002099003)(11063799006)(56012099006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sG42smrgP1fxBYOSuokUtF89KbIt6ZXSENS3J1iNAc0QOMzvHSEr8qJ3uwscDnCds5h2pDmzJJoimcYLpK4p27koruvSCKgY6yuSuCIEOTwQcFwShQJCmLNASXhDBR+B50xYkNuaaO/42DuMPi/2u6QIrT5ARW6hUWpW4KCezZH3mEHSLgeXh+iUI5/D6khPJKE2SmgTuZLSG5bSWPw/4v7v7ASkKY3bVHNZoAa5GMoTbIbmb36ziIoclLRFbnmV+H5l20FGjw4/SYxYHo7MQDDU7JmZSqhmCvLHMjw2FRRFBJGjqIXmlCkXswedQJfszrcvq5X2KBaBdl0wbe6U67DOWyJ5Y5X0nvItEPyclBWeSlsmmvd0cUK5n0sxUVqMKmyrrUtnYJW1SbKcvKpgO73Aj/99jI5fBXTedp+821PL7jSb3y95Kldam7wxs4Gg X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2026 10:17:32.4461 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd204820-ec15-4ba7-4572-08dec86bd0ee 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: DB5PEPF00014B97.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV4PR08MB11578 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 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(-) diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index a7381677498..5baad41a083 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -275,7 +275,7 @@ linux_get_siginfo_type (struct gdbarch *gdbarch) struct type *void_ptr_type; struct type *uid_type, *pid_type; struct type *sigval_type, *clock_type; - struct type *siginfo_type, *sifields_type; + struct type *siginfo_type, *sifields_type, *sigfault_union_type; struct type *type; linux_gdbarch_data = get_linux_gdbarch_data (gdbarch); @@ -285,9 +285,12 @@ linux_get_siginfo_type (struct gdbarch *gdbarch) type_allocator alloc (gdbarch); const struct builtin_type *builtin_types = builtin_type (gdbarch); + struct type *short_type = builtin_types->builtin_short; struct type *int_type = builtin_types->builtin_int; struct type *uint_type = builtin_types->builtin_unsigned_int; struct type *long_type = builtin_types->builtin_long; + struct type *unsigned_long_type = builtin_types->builtin_unsigned_long; + struct type *uint32_type = builtin_types->builtin_uint32; void_ptr_type = lookup_pointer_type (builtin_type (gdbarch)->builtin_void); @@ -364,9 +367,41 @@ linux_get_siginfo_type (struct gdbarch *gdbarch) append_composite_type_field (type, "si_stime", clock_type); append_composite_type_field (sifields_type, "_sigchld", type); - /* _sigfault */ + /* Begin _sigfault's anonymous union. */ + sigfault_union_type = arch_composite_type (gdbarch, NULL, TYPE_CODE_UNION); + /* used on alpha and sparc */ + append_composite_type_field (sigfault_union_type, "si_trapno", int_type); + /* used when si_code=BUS_MCEERR_AR or used when si_code=BUS_MCEERR_AO */ + append_composite_type_field (sigfault_union_type, "si_addr_lsb", short_type); + + /* used when si_code=SEGV_BNDERR */ + type = arch_composite_type (gdbarch, NULL, TYPE_CODE_STRUCT); + append_composite_type_field (type, "_dummy_bnd", short_type); + append_composite_type_field (type, "si_lower", void_ptr_type); + append_composite_type_field (type, "si_upper", void_ptr_type); + append_composite_type_field (sigfault_union_type, "_addr_bnd", type); + + /* used when si_code=SEGV_PKUERR */ + type = arch_composite_type (gdbarch, NULL, TYPE_CODE_STRUCT); + append_composite_type_field (type, "_dummy_pkey", short_type); + append_composite_type_field (type, "si_pkey", uint32_type); + append_composite_type_field (sigfault_union_type, "_addr_pkey", type); + + /* used when si_code=TRAP_PERF */ + type = arch_composite_type (gdbarch, NULL, TYPE_CODE_STRUCT); + append_composite_type_field (type, "si_perf_data", unsigned_long_type); + append_composite_type_field (type, "si_perf_type", uint32_type); + append_composite_type_field (type, "si_perf_flags", uint32_type); + append_composite_type_field (sigfault_union_type, "_perf", type); + + /* End _sigfault's anonymous union. */ + + /* _sigfault is set by SIGILL, SIGFPE, SIGSEGV, SIGBUS, SIGTRAP, SIGEMT */ type = arch_composite_type (gdbarch, NULL, TYPE_CODE_STRUCT); append_composite_type_field (type, "si_addr", void_ptr_type); + /* Since there is no possiblity to declare an anonymous union, + using '_' instead. */ + append_composite_type_field (type, "_", sigfault_union_type); append_composite_type_field (sifields_type, "_sigfault", type); /* _sigpoll */ -- 2.54.0