From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 0b35CZBspmlM0hEAWB0awg (envelope-from ) for ; Tue, 03 Mar 2026 00:07:28 -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=XeilDB72; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 18ABA1E0DD; Tue, 03 Mar 2026 00:07:28 -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 F3EF61E08D for ; Tue, 03 Mar 2026 00:07:26 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 176FA4BA2E3D for ; Tue, 3 Mar 2026 05:07:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 176FA4BA2E3D 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=XeilDB72 Received: from mail-dl1-x122e.google.com (mail-dl1-x122e.google.com [IPv6:2607:f8b0:4864:20::122e]) by sourceware.org (Postfix) with ESMTPS id C1FA34BA2E0B for ; Tue, 3 Mar 2026 05:06:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C1FA34BA2E0B 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 C1FA34BA2E0B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::122e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772514405; cv=none; b=SBDfRECt10vZHdY+IzBbhWw9NLAq41RLz7FwinX14uioi6XaZjF2Zu4ycBeprAN5tfSXchLSG97j8brded/zmn9gSABKH9k9ZPW7XW87NqG11BAGQ2AY7l6N/5Qwjv2/zF/NWPxoZ6C19agqTACv/vEDa6fRXcwsbPIZPbtNsMk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772514405; c=relaxed/simple; bh=AoGoKwOmhPAusKDlEF6Xze6J5ucPmoEAK618KSsJNMo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ANwMeESUXAQR+QtjSQKXEWdE2vIpOvrYWNOJnpX5z0vc5FT5TjK44HSoi/WLt3VNIREqpb3sKA6dwKFJolU7aomGIF+UXGhGNA4k6Thfu7k3SzC8C9GQJs91MU/0wmDNx904YIiX0u/RaAO6pCHhBXoSmzPvdY1z/HeG9KrA61k= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1FA34BA2E0B Received: by mail-dl1-x122e.google.com with SMTP id a92af1059eb24-1277d379936so6285348c88.1 for ; Mon, 02 Mar 2026 21:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772514404; x=1773119204; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wbTxkIWQSTApUDyIhO631wrcXfLBqnQ7hrgtBpRCFSE=; b=XeilDB72wVN74hEyUrfLKLsUkYeqiAwStOYCQ7PVOg1RMnl617daVyhWf33q7m/wbs U/DUl1qJk47bxMp7BmyoF6alNxu2b9O6JZ47cFuQyOxuXvXcywzw3W+PfjvY+d3U/s3S FJEHmJ73Mz3w021CIGHBpDx85tuiAfjQJlLppK4iaMRe4rXoB88UJqjev5M2XdNnq8cK 1pAfafxUu6+WkdALUc7o6mMNZWMiQ06wQD8RCja+n1U6EqVcI9g+vEe4W/38xTAN8lC1 fsY/d6AravBfGI4M/gHEUMVHBokkzKyfRngb5lP63umjmXGXnGU8kB/s+Ap9Dcnp+I/p 6w8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772514404; x=1773119204; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wbTxkIWQSTApUDyIhO631wrcXfLBqnQ7hrgtBpRCFSE=; b=j70rCiDY08J2SDbsEkK7Pk34cppRVQTnwXkMQGV+Tphtp4d4k+0jQIF6g58ykKJoKS DMVRUuKgo6o0H5hcYeke5seE26Cd7sTJFb6g7nGbMp62pHtv4tJGmRkwZYdzd0iEnaTV Ij8WG8UJxA4MvZZUW3vmMnUgF7OUsgPsW6C2TkW9sT0td5tUH5pgJqtFLlwHPoNluO4x xugHKd/VCwdR+6mNWyB7kL8BiW5u4KpMF4/fie7CZoP9LupdEl1IcWPFf2Gs2rTizjvj OE/sWX0HIFFkHBkn5VrwpfF/ZTADOcIylQGpRi8TwCwiuiJcTPezO+tHK4uY+FYWiEt7 NXSw== X-Gm-Message-State: AOJu0YznS8sOT5B1czjoHMNHbQWCoylPBQEbTcWf/BLIwrRdGyg/6hsP hr3WnaZpo0I6N2jCGUDTyKY4vGoeBXDCSRvl+f8moTWiIRHb8o4qMIud8SLiNsjyeAj2YZNQn9o 60VrjT+I= X-Gm-Gg: ATEYQzy5seQ/1/uuLpOO0D1JR3WnfTQTl5+wSBn4D3DWJxuOUdulaCPzSNLe/TmvUd8 t+Zxq+AvJb+jh5Db8s9QLMd3BFZ6NI+bFotN8DDjaFl7MW93my0CZxG12TDZkrtBPSVfgH9fOS+ KtsGI4qeq9BI38qQI+aSaMIlP8tSi0aHcUwUmR0Q9QetggFL0hnX1+IYgRKIQNPxvOiPk82x6Q2 m5yiJZC2Ey7IdwGtD0i9Ehfz/+CsLOEwPZTo3jNtTvVHg6pjOHbomywWZmK40i9MXgkPcMrv5ul i/Sb78XX1lAp549RoAbNWvPGgEfezz2TFIAR6Jsj1CRC/Sqk8z2T/TqfYNaC9vfqHwaBRL8Gkb+ 1+NfmSiUQAonrtHJGWxNrGpUYjcV5ArgHCRlbE8eaCLnFLYqORiwu3WnTsUJQzSdsj7gbCreZmu 1dkAmv8Cp5d3g5O2M8YJ+LPGxYl7ezVraibA== X-Received: by 2002:a05:7300:214f:b0:2ba:7069:686c with SMTP id 5a478bee46e88-2bde1be2e31mr5285674eec.17.1772514403431; Mon, 02 Mar 2026 21:06:43 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2bdfb3f898asm7138965eec.29.2026.03.02.21.06.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2026 21:06:42 -0800 (PST) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Cc: Chris Packham , Luis , Tom Tromey , Simon Marchi , sunilkumar.dora@windriver.com Subject: [PATCH v4 0/6] GDB: aarch64-linux: Some header fixes Date: Tue, 3 Mar 2026 02:06:35 -0300 Message-ID: <20260303050641.198127-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 v4 adds two new patches, reorganizing MTE and SME definitions. With this series, I think the AArch64 definitions are correctly organized between the headers in gdb/arch/ and gdb/nat/. if the series is approved I will propose a version of the last patch for the GDB 17 branch which doesn't depend on the previous patches, so that the build failure on aarch64-linux-musl can be fixed with minimal changes. I didn't include Luis' Approved-by to patches, since they have some changes in them. I also build-tested this version on aarch64-freebsd14.3 in addition to aarch64-linux-gnu and aarch64-linux-musl. Previous versions of the patches: v1: https://inbox.sourceware.org/gdb-patches/20260211045853.1436881-1-thiago.bauermann@linaro.org/ v2: https://inbox.sourceware.org/gdb-patches/20260214045504.361392-1-thiago.bauermann@linaro.org/ v3: https://inbox.sourceware.org/gdb-patches/20260217060106.1906312-1-thiago.bauermann@linaro.org/ Thiago Jung Bauermann (6): GDB: Add aarch64-pauth-linux.h to gdb/arch/ and gdb/nat/ GDB: Add aarch64-fpmr-linux.h to gdb/arch/ and gdb/nat/ GDB: aarch64-linux: Reorganize MTE-related definitions GDB: aarch64-linux: Reorganize SME-related definitions GDB: aarch64-linux: Reorganize GCS-related definitions GDB: aarch64-linux: Fix build failure on musl systems gdb/Makefile.in | 5 +++ gdb/aarch64-linux-nat.c | 12 +++---- gdb/aarch64-linux-tdep.c | 23 +++++++------ gdb/aarch64-linux-tdep.h | 9 ----- gdb/arch/aarch64-fpmr-linux.h | 26 +++++++++++++++ gdb/arch/aarch64-gcs-linux.h | 24 +++++--------- gdb/arch/aarch64-mte-linux.h | 23 +++---------- gdb/arch/aarch64-pauth-linux.h | 29 ++++++++++++++++ gdb/arch/aarch64-scalable-linux.h | 11 ------- gdb/arch/aarch64.h | 8 ----- gdb/linux-tdep.h | 11 ------- gdb/nat/aarch64-fpmr-linux.h | 28 ++++++++++++++++ gdb/nat/aarch64-gcs-linux.h | 44 +++++++++++++++++++++++++ gdb/nat/aarch64-mte-linux-ptrace.c | 1 - gdb/nat/aarch64-mte-linux-ptrace.h | 14 ++++++++ gdb/nat/aarch64-pauth-linux.h | 26 +++++++++++++++ gdb/nat/aarch64-scalable-linux-ptrace.h | 11 +++++++ gdbserver/linux-aarch64-low.cc | 15 ++++----- gdbsupport/config.in | 3 ++ gdbsupport/configure | 36 ++++++++++++++++++++ gdbsupport/configure.ac | 19 +++++++++++ 21 files changed, 278 insertions(+), 100 deletions(-) create mode 100644 gdb/arch/aarch64-fpmr-linux.h create mode 100644 gdb/arch/aarch64-pauth-linux.h create mode 100644 gdb/nat/aarch64-fpmr-linux.h create mode 100644 gdb/nat/aarch64-gcs-linux.h create mode 100644 gdb/nat/aarch64-pauth-linux.h