From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id OdR3EjKup2nBbRMAWB0awg (envelope-from ) for ; Tue, 03 Mar 2026 22:59:46 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=z6+Vk95B; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 47B551E0DD; Tue, 03 Mar 2026 22:59:46 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED 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 7278D1E08D for ; Tue, 03 Mar 2026 22:59:45 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 053E74BA2E17 for ; Wed, 4 Mar 2026 03:59:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 053E74BA2E17 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=z6+Vk95B Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by sourceware.org (Postfix) with ESMTPS id B2BE24BA2E11 for ; Wed, 4 Mar 2026 03:59:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B2BE24BA2E11 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B2BE24BA2E11 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::e2e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772596751; cv=none; b=RLWRvUDpusVWSSceAA7xMFZoku6+gnc/8FFI3VeU4fQpFbn2m8GcJtRxElv+nikc31+yTfqU3tiD//z8l7hy0LjDLXgLLFdjyWD0CtWBfOk/N9JEEm6ahGK+Ionh2d6aygka9pAMR207Mj2c3TJBZU1Wmc6jyfu9G8RFYsfGR3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772596751; c=relaxed/simple; bh=WTfLLtPSBggp1RdVc+AUg4efVDQuZuvfb2TQluBxiG8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=HMV7skw91fENnrKnXVCQoUGMR3qOIBYPY7/2HgEyu1/cLlQhoZUGDayYER8dztvXdMUGv5g45+kd7Mh2xtVWMit3w9we/TCHs6qQ2RpHKyrzA2qjNKGJqCjojvPuljitsC1pdgWYVYyjXk+UNmJoKYK4s9e7sbi08/Ncq/3r150= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2BE24BA2E11 Received: by mail-vs1-xe2e.google.com with SMTP id ada2fe7eead31-5ff19e74779so4124705137.0 for ; Tue, 03 Mar 2026 19:59:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772596751; x=1773201551; darn=sourceware.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=TbxC1Jgi0qTut/cUvD6CBLTtTh6D5Ud5ZTwvcCz2ADY=; b=z6+Vk95BG0iuideZN+xDAN+rV270Hg/K7mfBJ/mOic27r7a4QRIoOrd4B9lBk22sIq 67fWkb+Y5aOKG5SB2YJwbbHoF6lsHIBecSpas+y9y7V8D37sPzfRpYduDwzQ+pcY6hcz qaq56AACmc9HZ7bkFEWNNd42cK1mnLypjI7K7R/g9J8oBHd4KHK/Fylg7Y/6g+nLQoGo nr+tMqG6lKrBofxjrTu0RK3bH4x0bA8kCJyjpUVXTHBXTyVAt8F5qIzTAMnSkhGXrQPO ofqgcALwqjkAYKnpBj0bsbqgoXiTwBXWUdkqUx8K10mw9pLM6eaZI6XkFEOhi3FAfQzE OF9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772596751; x=1773201551; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=TbxC1Jgi0qTut/cUvD6CBLTtTh6D5Ud5ZTwvcCz2ADY=; b=xJ9MXyqE20VV60GRoAP+HTnntMGiAcJw6hlLtrv9s3Bc0OBC6hnQY1PwOqUmtEQ/Jm Nb+Vpvd2UOyQyskFaLb20pd+ATqyiUaceu149Tj7ZoHGMrvd5NN5ax+y/eYDh6nmN8NY POZGGzgF6PRyK1X0cxSWE4/2vmlJ8zwsJXEuYS4K+V3ya2qu8yfxOFg4DILuF7EQxUUT LYqXW1KGkh8bFmrEXkQYAYlYxEqkFl4CvP4X/FOCKO2yWNFPTNeT1fJWl3cIP2GhihLU l7RZfF6x+u7Pl7JxUm2mjYs64LfqFc3Ozpcg1KXq5qTemG/J4oZd1wmE8YBW8TqYu43b zvxg== X-Gm-Message-State: AOJu0YwLboNMDnFQpiyXUMzXCpT82+5NN++o95kY3g/bTyg98Oh8yQL5 qxgDIQlBstQA26WK379IVw3tTW4uFggPtilEIOEdK9SU4zzqcVa0NDOwk2/IcxuQwN3RDqVURDC VUGcguKiNSQ== X-Gm-Gg: ATEYQzydlW5WaiYk3GtASEU1Ed4+hTWNG9njD5Id4uixblL1TD3T8/0AaqQoOwzc9Ds 9Lh6jZ6DsTo2AGxMtkG1kgie0QR5jetLgGZwqaH97QScFFXYlDnRGTIV30Z6RxJo/Q+OmkMc+r1 fo7QMp8NXMlEL5XKiXfmwiLkyt0VQ2imce0CW1ZYPrxZNScx7/es+x9AE3ZVakDK/gO0lADVM8Z L+jDwg62EcnCJ+xBXX6MkjM4iJv/DFMoLvzcclQOmIiczRfx90C+64a2MohvAztG2ahxLKevk/Q 0hz7UfZHuEqQ/U8bQE7qo7DMvgI9gBafVQ43cv/sEMCX8pPVUf7DKqsN1fwsZuEB87rwkJpjFMg Pr5SCV6P1OLuvkEi7WnEFgAJ5SqpDwgvx+dZ4hV1Qrk55eMqMvJF0TxS1RDifvKI+chikYaTcsy y0cVjlvZndTtv8eRH8JU+yaQpU3dVTJOYI3g== X-Received: by 2002:a05:6102:3f56:b0:5ee:a76a:8513 with SMTP id ada2fe7eead31-5ffab01234amr497560137.33.1772596751015; Tue, 03 Mar 2026 19:59:11 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-94df61672ddsm17152568241.0.2026.03.03.19.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2026 19:59:10 -0800 (PST) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Cc: Chris Packham , Luis , Tom Tromey , Simon Marchi , sunilkumar.dora@windriver.com Subject: Re: [PATCH v4 1/6] GDB: Add aarch64-pauth-linux.h to gdb/arch/ and gdb/nat/ In-Reply-To: <20260303050641.198127-2-thiago.bauermann@linaro.org> (Thiago Jung Bauermann's message of "Tue, 3 Mar 2026 02:06:36 -0300") References: <20260303050641.198127-1-thiago.bauermann@linaro.org> <20260303050641.198127-2-thiago.bauermann@linaro.org> User-Agent: mu4e 1.12.15; emacs 30.2 Date: Wed, 04 Mar 2026 00:59:07 -0300 Message-ID: <87qzq0ckj8.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain 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 Thiago Jung Bauermann writes: > diff --git a/gdb/nat/aarch64-pauth-linux.h b/gdb/nat/aarch64-pauth-linux.h > new file mode 100644 > index 000000000000..5ce85fb296c4 > --- /dev/null > +++ b/gdb/nat/aarch64-pauth-linux.h > @@ -0,0 +1,26 @@ > +/* Common Linux native definitions for AArch64 PAuth. > + > + Copyright (C) 2019-2026 Free Software Foundation, Inc. > + > + This file is part of GDB. > + > + This program is free software; you can redistribute it and/or modify > + it under the terms of the GNU General Public License as published by > + the Free Software Foundation; either version 3 of the License, or > + (at your option) any later version. > + > + This program is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + GNU General Public License for more details. > + > + You should have received a copy of the GNU General Public License > + along with this program. If not, see . */ > + > +#ifndef GDB_NAT_AARCH64_PAUTH_LINUX_H > +#define GDB_NAT_AARCH64_PAUTH_LINUX_H > + > +/* Feature check for Pointer Authentication Code Extension. */ > +#define HWCAP_PACA (1 << 30) > + > +#endif /* GDB_NAT_AARCH64_PAUTH_LINUX_H */ As I mentioned in another message, I amended this commit locally with these changes: diff --git a/gdb/nat/aarch64-pauth-linux.h b/gdb/nat/aarch64-pauth-linux.h index 5ce85fb296c4..5005d0038cbb 100644 --- a/gdb/nat/aarch64-pauth-linux.h +++ b/gdb/nat/aarch64-pauth-linux.h @@ -20,7 +20,11 @@ #ifndef GDB_NAT_AARCH64_PAUTH_LINUX_H #define GDB_NAT_AARCH64_PAUTH_LINUX_H +#include + /* Feature check for Pointer Authentication Code Extension. */ +#ifndef HWCAP_PACA #define HWCAP_PACA (1 << 30) +#endif #endif /* GDB_NAT_AARCH64_PAUTH_LINUX_H */ The #include of is because the #ifndef implies that the header should have been included, so do it explicitly. -- Thiago