From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id XVhdJoE+PmrW+xgAWB0awg (envelope-from ) for ; Fri, 26 Jun 2026 04:55:29 -0400 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=lfOPgW9X; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 7FA341E098; Fri, 26 Jun 2026 04:55:29 -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 5CAD91E024 for ; Fri, 26 Jun 2026 04:55:27 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BAAE14BA2E3E for ; Fri, 26 Jun 2026 08:55:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BAAE14BA2E3E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1782464120; bh=T1m3nYnb7tjgH7iniPE5mEkNajEGdCpwR3iv8iGmdw4=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=lfOPgW9XqMcVpvk1JQAE5kWO/bApYo4QjMNpKVWxzARnAI2R0IYSEuovFk0bS+y7Y k4AgBEmvhYYyO1mP6ZMVkMFn5AuHZ1tesJEOQVYCQdYEllu6+EomLa2VycUjfqSWtX BiWEyCPHtIqXeEkKgMRxazhwNHjl/mpD33MlNNf4= Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c201::1]) by sourceware.org (Postfix) with ESMTPS id 3C0344BA2E3F for ; Fri, 26 Jun 2026 08:54:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C0344BA2E3F ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3C0344BA2E3F ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1782464044; cv=pass; b=IKy9eXFvdsxArI2Mio3ocN8p7uxJxDwhuTPB9GNv/SRh5HH7Do2eGZudcItWwaxzw5sbU49X+BWd9+iFOaROOEWU7qckDlT5QmhMYXfj8as2LqI5N6hiVzOjQA/lvlEShd2Gx2p5pwQgomMRd2f9SmJm/XZ3N8w2QffD7ASPrmQ= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1782464044; c=relaxed/simple; bh=3AK8e97qBFYfGivOa4fNida59xfaX1Xg6fjMJ0SWq2Y=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=FFtV+lp3XzrEmC2LSnzu/KRXgLKuoYnChA+AWPbTXeD3Bj4ZsXXfsEpzpOrDJKhBBjWfNNh0IIiANYit/Gv60GXt8jaXLRLJRl0/iEnkL+c9DSBCEB8SZsqtNz6+ukc4UUY5ucvoMSYkQQXTCgNXDTgLS+jUf7tPrOn2m5jvn0E= 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=f3BQv3wG; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=f3BQv3wG DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C0344BA2E3F ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=ookX2YJoEUptuTXkYtVM8l1kJapRV/uXKWk7wna0kpRIM+PlNnXDh6aamP6Jwc1Quk580l/rCYUwK+7hXkdcCOIkGdrg5uUIE2lUxrinZy5YOWoZEyCKNvfCDPro3v0+fguPPapDeF5DsNZSpVCD5QSlEUUvf5Y3fqFtm5XkNw/3ufNwUSGRNo/RB7DZIUBjVotBTmVVN99wpj8ADF6/ejvNIqoKgpYR2qz87otJUevmerpqE/FVutS2fW7xGstGflTKqr67YrvGkRQxmvyS45fdAyyVTd8G26yl+n3J7QJijiA/u4e3WIASmv0F7sTgtErsjkqHTdtZDNWiRSzN2A== 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=T1m3nYnb7tjgH7iniPE5mEkNajEGdCpwR3iv8iGmdw4=; b=TijSlJ0vxYl7pU31Air87y/wRma/8H8kfR32a/LBBwm7zEMFYT4T17KtLfAoTUUodG6jLWBAOCUYkf/SX8bSNTQ8hT13vtVb/Mmg875OeKMs6AxdhKdYSsxe8hXQKFPhoFrl6AowwNEgZNKva8iGK49Y8bYpgSDOizPM3/ord+b8T3u/nBzeuLtpCIcwBa0AbwNvDCZGFxGU6PQh6RrA31PWI0NEQR2nvmrDEj51bGjXHTevULfv2mgOx85TtbOcw4l9DFvA2oPxuTLJxlPWu8QaoTQJ2Z7zzxmH+rt3TnNNmBN21e+EfcKS6ozzilgTLxQEecuhjDN0Qxk4M65HaQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=redhat.com 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]) Received: from CWLP123CA0220.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:19d::11) by AM9PR08MB5939.eurprd08.prod.outlook.com (2603:10a6:20b:2d9::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.159.17; Fri, 26 Jun 2026 08:53:58 +0000 Received: from AM3PEPF00009BA0.eurprd04.prod.outlook.com (2603:10a6:400:19d:cafe::20) by CWLP123CA0220.outlook.office365.com (2603:10a6:400:19d::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.159.17 via Frontend Transport; Fri, 26 Jun 2026 08:53:57 +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 AM3PEPF00009BA0.mail.protection.outlook.com (10.167.16.25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.6 via Frontend Transport; Fri, 26 Jun 2026 08:53:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=q7ZZNVd4BbPUNnM7k3bxceyVVEAjHM1eWtFk0r8bDxKPzM6jZT10HTL9ojb6frCTpE4jA3E8urkFf5OcTnb+D04payFyzlgm0CqtJEwc8ScvuBRBlc4xHq9qE9jtFYo8QODl2uv4mE5OQaCOiDa3ZGrG0E90Ctu0WC/Cz09dZcJVJA/y/66VMMcUIfXq6NX+wFYIlT1QkuzM56i/AK5w2HSnqsW2/rZy+jHp655PH5N3PjAnpRIoGsV0k7qnHEa9WGIBlpqsz7vMM0dr6h7A3MM8CNsp0z+/twOyTYpFiQmOcLzjlD8foRfexobHriKGJtHN9vey01ksDlDs+sBO1g== 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=T1m3nYnb7tjgH7iniPE5mEkNajEGdCpwR3iv8iGmdw4=; b=HSJUDxakQ3ad23wQjID4XcboVI1ryyAkOTm45FoEdw8PLy1mI6CRPe5ICx+ODO+Cyi9BWJ14appl/Hwa75mTSkaoCDMPbp5kQ7A2Ay8uge2N3t1yUvCSD43SL059+BlFxBFU1oQAqNX07qSkVAiZsRO2hmJzHBr/OeZF8Ta3dDwQEa0qp6OcPJgIgDJZ++hoQoOPHv93EzjaKRS40QVWGmJ1j0Q5ANcTxc1nqTADZo/TndSuR0QONNYFdAHsb25dbu6FzrEqMCbU32JKdzh8ErNVU3NvlINuuaQnLTBQiGomLqAYNQks0RMVexwYJGwFEPUg9Y7RApcCrBe6poiHIw== 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 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 GV2PR08MB9400.eurprd08.prod.outlook.com (2603:10a6:150:dd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.159.17; Fri, 26 Jun 2026 08:52:54 +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.0159.016; Fri, 26 Jun 2026 08:52:54 +0000 Message-ID: <3ae21c49-6f06-4e84-8e33-de82e46ba53b@arm.com> Date: Fri, 26 Jun 2026 09:52:53 +0100 User-Agent: Mozilla Thunderbird Subject: Re: Adding architecture-specific commands in GDB To: Andrew Burgess , gdb@sourceware.org References: <077b9f00-ec84-440f-a84a-d804815aa77e@arm.com> <87ldc3or1h.fsf@redhat.com> Content-Language: en-US In-Reply-To: <87ldc3or1h.fsf@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0144.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:193::23) To DU0PR08MB8663.eurprd08.prod.outlook.com (2603:10a6:10:401::6) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DU0PR08MB8663:EE_|GV2PR08MB9400:EE_|AM3PEPF00009BA0:EE_|AM9PR08MB5939:EE_ X-MS-Office365-Filtering-Correlation-Id: 193111f4-8a07-439c-5eb8-08ded36075ae 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|366016|23010399003|3023799007|22082099003|18002099003|6133799003|11063799006|4143699003|56012099006; X-Microsoft-Antispam-Message-Info-Original: 8AM6xMnvYRLRvhsDzli8BNzdmlGacRBBHn1cQfU3PvPolk9QfSF7RLuI0Z/p9seXMPH/Q0hV8FQ3YSWu+qjIXp2MGLUTJbEVZJkVH26ANYr7ysnM+fQvU5lVQ8EBAEPncImR1dtWdKNwoCEUnrsO/BCupwvbw6e/hmpyWLF58tl9obI2aNywQeyHgxUNfGpmlEg0wuq5kxs2kHIqr6ViHdf881178rtfgShdTXrpSaiHZc7mTwElhpQOVO42mxPnVBppuhym+3l64Be31cWdbRe9APZakG8MfTVz2KaEWgjbQuFcDFyIIISB8yy1YQuCqmmQTC8xa/ZF8TH4fEXDdzfohzKY9AccBif0BBNlhBrplpe0loYR8W21TDx98cZ8u3ZRiC6yd6fsCIKGITkt1eIpZUs7tLs8t0qjENfzpODDmIe5l8Qrb7jqLgKu4OPDcRzoWCoOk+PGkQXNeNpbb4bqBp1m5KehD0Po/b4N+DdUajkL2V8FxV8Qcn4vMSw0J4BUw/ltdIju4q3114gHAylfGU39YT5Fp0knKY63eJp3rlM9FiecZ1Y2oQ0Oea6cOdTOawFKPGRgiJwkYUHsv5sK8LQcSJl10lOFoYdSV1pIymfZGVhWWeXxm7iW2g26KnYJI57ZcoT3q3Cqw3fqrVi6Vp+wYsLX+Ao9IVQpZrI= 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)(366016)(23010399003)(3023799007)(22082099003)(18002099003)(6133799003)(11063799006)(4143699003)(56012099006); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: pcZMyTnRsJl/f07xOK8lo0iB6yZUY6N5vBAhV91Awz8tAKOpsejGmJvsaN8x1dgAY4UEnYFgzW5f6X/t5i4xCaGxg+BBQBDClX1L0zxpctI2IvmHvLE5L37t6S3XKwtK1LZQH6cLo+e4+E1wj4mzpCSU5MSiMflJR5svJJcXbkKaus5jmTO6spCLm14iIINuPINGuPHsEL1grLfDm0FzkxU+G3ot6/M8YYNdNhJvEei0fIh5MPFROIUd4UQWCIninzD3f6xaGLEPciRaDJr2m6r8SvIr5q69Eu0rFeuLIfZu9HIa905xrwZpQnr6z4GQlZmM1/MwzXbqiVgyHURXiA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB9400 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF00009BA0.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: cbf06ccf-3c68-466d-1404-08ded3604fdf X-Microsoft-Antispam: BCL:0; ARA:13230040|14060799003|36860700016|35042699022|376014|23010399003|82310400026|1800799024|6133799003|11063799006|56012099006|4143699003|22082099003|18002099003|3023799007; X-Microsoft-Antispam-Message-Info: DpnVH7Jr3cpWbvpTwFt6VLxlxxLkglA34s7qbm62vrK6Uizebyw0rzOWfsr1ZGaHxcnFFJHZ2q5gbgLdOMRNtRDcVthFY9Ti9C/IA0Kgo76h/Jjb/ScK+WLvBTFNIDb/AJAGI3lOAUtFF3LLN3crgildSyrZ1pZzHCNOioeyHjlDXrny1k6IT4wvkEiGnK3fpPnb0DWUdOsE9bz+sSUi7JJ2fcc3IvypdIxi5LqKUon2Pmpc0F/4A5d7R7ktqzg3rUrj4wSzTJLm3Cxupfqwlkb5MdvMhSbltMtMo16ZdPG6yjKyeCRu+71JSPf0fTef4EdTAWfpeMuffT1vM31LSS3uQnSSTMkNJY6lb42YifTqyM7dU4GTaFou/qPqQKXtGY4/xX3nsmr0o+YarltCyJTGAwTY/+eZZYL4HD+yEgSh+FNP1FhZjc5i0tSuSpmBto/iT/g2VGVToOqpTPkDab9mCb9/XL2BsdMF6Cz2KEPWGwkkBRJMRkewKRKmOtxfwHvfdybCNy5C1UazcquevYGzXq4BW7txNrPCL24Ofnz4/M2pAp7h+37QEd7xCcVS4dsBvMaf6e3QMQnieR5y22VBnEAcealZ7ny9BOZUdgcQMJyfd18zkziqk4k1+cFsF8VHa2uIH2Fw8xmA5B7WcxFNhqyANZS7FS7opCWTM+8RU+MfFhBf4VAxHuv1hchIz8rqWVZyqtWtwKF6XuxGPw== 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)(14060799003)(36860700016)(35042699022)(376014)(23010399003)(82310400026)(1800799024)(6133799003)(11063799006)(56012099006)(4143699003)(22082099003)(18002099003)(3023799007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: V2iaIn2slCAhppD5kG9PBq5frI+txOWOOrFACByeD8aD9pZhkiS1TfLvMdORkBqYogEvsJ/TqBs2r38EPWx9FytKr2YGiSvmyoSFOj+n3F6FiLwsPI8EZbh8JrZWdqC538oUIbHOHTcxYfHjhaYXNK2MrcWwMpKfS64q6wjFdTkrZu9xt5rvbfWbb9PhesOCtkP9P1VRllBy8XMRX+Qnk5lkkQXT6BJ15s7Y6LHaws2/qiyErUe4mAzMeP04u4w/QhaebOJeCKSoZUXBi7yb5E53HoOWKWCB6d26HRztproMOf0JAB4+PCPPmgwNL+QXqkllLVm4hWgbobZV5kzEqsb0WEKnyw/s4YFsW5B1ZDIzkvjY1PemR/27P83QqsbPLKYaOCJIeT4cyYwOs53D4bM2udim11V9EapnGQ+OwVnCuqSgL1Hri1QoR8NLfIpu X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2026 08:53:57.7499 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 193111f4-8a07-439c-5eb8-08ded36075ae 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: AM3PEPF00009BA0.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5939 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Matthieu Longo via Gdb Reply-To: Matthieu Longo Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 24/06/2026 17:13, Andrew Burgess wrote: > Matthieu Longo via Gdb writes: > >> Hi all, >> >> Today, GDB seems to support architecture-specific commands for show/set [1]. However, it is not >> clear to me whether any commands beyond the scope of show/set can/should be easily added. >> >> My usecase consists in adding AArch64-specific commands to dump some tables and permissions set up >> by the Linux kernel. >> >> # Constraints: >> 1. The tables are AArch64 specific and don't fit into an existing command. >> 2. The permissions/capability views require to fetch information in different tables and procfs >> files to be computed, so the computation of such permissions/capabilities is very tied to the >> architecture specificities. >> >> Since I don't see how I could add those features to existing commands, I was thinking about adding >> them under an "aarch64" namespace, and following the semantic of existing generic commands as much >> as possible. >> >> # Examples >> >> ## Dumping the tables >> >> show aarch64 -tables [TABLE_NAME]* >> >> NB: those tables should only be set by the kernel, only read access is required. The content is tied >> to the architecture. > > Maybe I'm wrong, in which case I'd love to see some counter examples, > but the set/show command are usually for settings that are set by the > user of GDB, and the show reads back the setting. > > Viewing kernel data would normally be an 'info' command. > What would the opposite of 'info' be ? If for instance, I wanted to change a value in one of those tables ? Matthieu