From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 3dnEGZ0Dp2lznRIAWB0awg (envelope-from ) for ; Tue, 03 Mar 2026 10:51:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1772553117; bh=lG4iRxVXiHRBXqon5tsqywsgXtVaMezFBYCUwUivc9c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=mOWHoE13ORh+K894JdSBHoedLy/3o029QR0BnAGBdQz70kMTfg5fbMb8ubRJuSYZa HPt66P6HosVfe6CVaiRn85glAC9y+xx+RAu0FPwJIVkD7cRpHBo5C/xpL6nhF2W0Ib lmVqQy1D4SdheBFQygFtTT7q2toVik5ijieschtE= Received: by simark.ca (Postfix, from userid 112) id 519921E0DD; Tue, 03 Mar 2026 10:51:57 -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 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=drnayK0H; dkim-atps=neutral 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 3C0D71E089 for ; Tue, 03 Mar 2026 10:51:56 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 988084BA23EF for ; Tue, 3 Mar 2026 15:51:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 988084BA23EF Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=drnayK0H Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id B78CD4BA2E18 for ; Tue, 3 Mar 2026 15:51:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B78CD4BA2E18 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B78CD4BA2E18 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772553090; cv=none; b=Pm0H/Gcd+UrZwGLNGQQE1IBO4HGnD4cf+xp6x3hyfzLUKVagmWtXzXO6pev3FKzSyCQxfc6ox2dcw4Meaptth3dQmfYHqSvNheXFPYjJQmdboZBBq19m/I8KVH6zuVRKQxp0nNPfWqWr6fuqzzy06Ik2prfhuJJJ6g0FpWS6VxM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772553090; c=relaxed/simple; bh=lG4iRxVXiHRBXqon5tsqywsgXtVaMezFBYCUwUivc9c=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=vWg4uf16YV7y1clRedQE7NgbWYRwIreEUMlRMLqbNv+KpHnvNAnwlk36EFX3G0QExNn606MJdP2dG4ZSc7hFiJ2+8BExeXYW1nNjXoItReBC5CuRP/cqFJy5ZwSDesay7mQWkXwX2mY9DHRZrYtk7xd8CRTfwIOh2L3rgaas3f8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B78CD4BA2E18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1772553089; bh=lG4iRxVXiHRBXqon5tsqywsgXtVaMezFBYCUwUivc9c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=drnayK0HwPDi9cIqA4+lhK9qaHeAbEVPcBGXJuBHXx2mXwCsd08ZQF+DV9YEjgmms Xhj8JcoCgW+woo+V69YzL7Nz2ll53zzexFddAM6bspSmWC1c+oM5bj9v4nFD3aFsbs Qge466oZH0MLcvBHvQTUmHcnl/crBBKyCoBA5kf4= Received: by simark.ca (Postfix) id E8D751E089; Tue, 03 Mar 2026 10:51:28 -0500 (EST) Message-ID: <8e20892a-b4ed-47c1-90bc-69d8d948aafa@simark.ca> Date: Tue, 3 Mar 2026 10:51:28 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/6] GDB: Add aarch64-pauth-linux.h to gdb/arch/ and gdb/nat/ To: Thiago Jung Bauermann , gdb-patches@sourceware.org Cc: Chris Packham , Luis , Tom Tromey , sunilkumar.dora@windriver.com References: <20260303050641.198127-1-thiago.bauermann@linaro.org> <20260303050641.198127-2-thiago.bauermann@linaro.org> Content-Language: en-US From: Simon Marchi In-Reply-To: <20260303050641.198127-2-thiago.bauermann@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 > diff --git a/gdbserver/linux-aarch64-low.cc b/gdbserver/linux-aarch64-low.cc > index b19e605f55d6..07ddfb324466 100644 > --- a/gdbserver/linux-aarch64-low.cc > +++ b/gdbserver/linux-aarch64-low.cc > @@ -22,6 +22,7 @@ > #include "linux-low.h" > #include "nat/aarch64-linux.h" > #include "nat/aarch64-linux-hw-point.h" > +#include "nat/aarch64-pauth-linux.h" > #include "arch/aarch64-insn.h" > #include "linux-aarch32-low.h" > #include "elf/common.h" > @@ -41,6 +42,7 @@ > #include "arch/aarch64.h" > #include "arch/aarch64-gcs-linux.h" > #include "arch/aarch64-mte-linux.h" > +#include "arch/aarch64-pauth-linux.h" > #include "arch/aarch64-scalable-linux.h" > #include "linux-aarch32-tdesc.h" > #include "linux-aarch64-tdesc.h" > @@ -952,7 +954,7 @@ aarch64_adjust_register_sets (const struct aarch64_features &features) > break; > case NT_ARM_PAC_MASK: > if (features.pauth) > - regset->size = AARCH64_PAUTH_REGS_SIZE; > + regset->size = AARCH64_LINUX_SIZEOF_PAUTH; It's not a deal-breaker for this patch series, but I'm just wondering: is there some "native" thing, provided by Linux, that could give us the size here, like sizeof(some_type)? If we're trying to use the native stuff in the native files, then for consistency it would be nice to avoid relying on our own definition of the sizeof pauth. Simon