From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id W6j/C0kPh2pxcTIAWB0awg (envelope-from ) for ; Thu, 20 Aug 2026 10:29:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1787236169; bh=2L3jzpg6Wb6iRPYGxnVIbaRsBroFWZbLqpvz3jtr7R0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ewYivDEgxZQvgEXhvx6QYzVRv5mikwSCOyjwhADdiQeRIbOa7i02L4Bs+URGrfgOF oBN3YWlzfCl5Hh6WtQ2NDbEvOWxw2PnYDpvM0wXf3nL4Xp84DLQnLbD4YKtpo+5jos CpKc2CYrLpZAi+BZ+oekpdE3pPUxsdr5cxmReK88= Received: by simark.ca (Postfix, from userid 112) id 1EC5F1E033; Thu, 20 Aug 2026 10:29: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 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=ddUnMstU; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 7FA431E033 for ; Thu, 20 Aug 2026 10:29:28 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 644C04B9DB4A for ; Thu, 20 Aug 2026 14:29:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 644C04B9DB4A 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=ddUnMstU Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 18E3C4BA900D for ; Thu, 20 Aug 2026 14:29:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 18E3C4BA900D 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 18E3C4BA900D Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787236144; cv=none; b=mVofko+sZgwJVZ4giLyul0APKDQtXcggf/GiEv37k4Bvdon6HEXqSBzuUTXoqOV491zLpXC8dqa4K/L8hRYDYYUTeI0mTwtCpLra0yF6BkefSn6/SB4b41TQAk9slYn20wJOgbAmKAugtgc51NWeI5FNOAkEw7mM5wPaRNXgxm4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787236144; c=relaxed/simple; bh=2L3jzpg6Wb6iRPYGxnVIbaRsBroFWZbLqpvz3jtr7R0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=pFajaFcczoN5W2nOAEOGFkJFcrjoBO3612D4fa/HrLAwvurUNr8ZGUP1iA4OULD5rkreFNfiKye50IEZRwMJzvH3t5y69z464JIRS4zDLyuzhKEPDx6jSKYSgNHYG7Fcgex+51niRGogjy1JeO87ouEwxGd5uCb72M1rD2CXVe8= ARC-Authentication-Results: i=1; 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=ddUnMstU DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18E3C4BA900D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1787236142; bh=2L3jzpg6Wb6iRPYGxnVIbaRsBroFWZbLqpvz3jtr7R0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ddUnMstUvVyggFVuL2+kt2kc6b6Kwxwhb0/Ku22z6nKp+6WrTsleFwu3Fmsqk5rr6 W9zxK4WEnKcc5U0GxMggzW0Qu7t18HJt3lOWoCvNlT3w/EttonAGNIegdKkRwp+X8f SE7ipt6BsKzUYBJ38yKFE/jdpyusoZTMWApmHtQE= Received: by simark.ca (Postfix) id 81C101E033; Thu, 20 Aug 2026 10:29:02 -0400 (EDT) Message-ID: <1646ac0a-b433-4bb3-9800-efef38d6f1d9@simark.ca> Date: Thu, 20 Aug 2026 10:29:01 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] gdb/linux: add helpers to read AT_HWCAP3 and AT_HWCAP4 To: Matthieu Longo , gdb-patches@sourceware.org Cc: Luis Machado , Luis Machado , Thiago Jung Bauermann References: <20260727172831.121566-1-matthieu.longo@arm.com> Content-Language: fr From: Simon Marchi In-Reply-To: <20260727172831.121566-1-matthieu.longo@arm.com> 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 On 7/27/26 1:28 PM, Matthieu Longo wrote: > Add linux_get_hwcap3 and linux_get_hwcap4 helpers to GDB and gdbserver, > mirroring the existing linux_get_hwcap and linux_get_hwcap2 interfaces. > > The new helpers retrieve the AT_HWCAP3 and AT_HWCAP4 auxiliary vector > entry either from explicitly supplied auxv data or from the current > inferior. > > This prepares for future features that depend on HWCAP3 and HWCAP4 > capability bits. > > Reviewed-by: Thiago Jung Bauermann LGTM Approved-By: Simon Marchi But one question that picked my curiosity: > diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc > index f1be62225e2..c4daba0bf40 100644 > --- a/gdbserver/linux-low.cc > +++ b/gdbserver/linux-low.cc > @@ -70,6 +70,14 @@ > #define AT_HWCAP2 26 > #endif > > +#ifndef AT_HWCAP3 > +#define AT_HWCAP3 29 > +#endif > + > +#ifndef AT_HWCAP4 > +#define AT_HWCAP4 30 > +#endif How come we need to provide these values in gdbserver, but not in the equivalent native part of gdb? Simon