From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ikyeBSv+lGGrDQAAWB0awg (envelope-from ) for ; Wed, 17 Nov 2021 08:05:47 -0500 Received: by simark.ca (Postfix, from userid 112) id 0D9121F0C1; Wed, 17 Nov 2021 08:05:47 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 811911EDEE for ; Wed, 17 Nov 2021 08:05:46 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7CC51385840C for ; Wed, 17 Nov 2021 13:05:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CC51385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1637154345; bh=Vb1iEcWLa9bvRwHNi2MSVwkIjvSqamyRWNVzM8xcrV8=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=jYPX14VWAG7jIE77Bck3I9qCxirXIq+tJc1zaeMdsSYcmse3TIRVKzkiEWw99aKO5 sFHb3HJ4K08MKst/xgAsS6Rnv37+kR1tMz/BzHtk0sDn7WsmBsH5MARf5kabT8WnFD FskBuZY+av3bKFNbJpF7nbNdQZ94IQ7JyosfST9Y= Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) by sourceware.org (Postfix) with ESMTPS id 0C7AA3858D28 for ; Wed, 17 Nov 2021 13:05:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0C7AA3858D28 Received: by mail-ua1-x92f.google.com with SMTP id az37so5653204uab.13 for ; Wed, 17 Nov 2021 05:05:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vb1iEcWLa9bvRwHNi2MSVwkIjvSqamyRWNVzM8xcrV8=; b=HRf73dV5W9MoNYGY6n6eUF9llmoweMvtcQ33xxI43LSZiEnMNJydeY6H/ws2dQfWXK RFLtXiaqHljyQAG7CFA5sisFMT8irOIBLlP26y9UkPuwy+XBIvo5xB5th7wwNu1VyfUL PVh8eSeidyV9OQvQZAL3anuxwWFH8Icq0aQRbyVyiwIeNpCq8vr5FjLPXgM93gE2axsz oqhMgmQ4pbbw6yr2JLPwl0gLah6bZjl1bmKXbSK+qNgZRd2lLdj214gnlhgyhYHgHIt+ UoFv95/BlBvplUigw93Yh3ihq7J+RnmS9mfu0+Yriff2zaSJ+r+MzsAF6usNk4KSTc2X RBVQ== X-Gm-Message-State: AOAM5305i+iTTyUDtse5ArLXVSm3wNO4cD2MzAAdLPCMFiJ/uQdnr3Fu TdsLfVe6xnBbge3yzg46C7dE4Y30Eol8Hw== X-Google-Smtp-Source: ABdhPJxTRIXnlD5FI4Pn2oO3TrS03wwFHhGhqTCemNjYnVSLeCVKpiuySazCTUn05dgbv6ingTnKCw== X-Received: by 2002:a05:6102:5489:: with SMTP id bk9mr69880988vsb.37.1637154326562; Wed, 17 Nov 2021 05:05:26 -0800 (PST) Received: from localhost.localdomain ([2804:7f0:4841:5563:89c5:7b47:9187:6064]) by smtp.gmail.com with ESMTPSA id u14sm11395240vkk.12.2021.11.17.05.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 05:05:25 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCH] [AArch64] Expose the BTI BTYPE more explicitly in the registers Date: Wed, 17 Nov 2021 10:05:21 -0300 Message-Id: <20211117130521.2034729-1-luis.machado@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb-patches Reply-To: Luis Machado Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Augment the register description XML to expose the BTI BTYPE field contained in the CPSR register. It will be displayed like so: cpsr 0x60001000 [ EL=0 BTYPE=0 SSBS C Z ] --- gdb/features/aarch64-core.c | 1 + gdb/features/aarch64-core.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gdb/features/aarch64-core.c b/gdb/features/aarch64-core.c index a080a641c45..bb707173be6 100644 --- a/gdb/features/aarch64-core.c +++ b/gdb/features/aarch64-core.c @@ -18,6 +18,7 @@ create_feature_aarch64_core (struct target_desc *result, long regnum) tdesc_add_flag (type_with_fields, 7, "I"); tdesc_add_flag (type_with_fields, 8, "A"); tdesc_add_flag (type_with_fields, 9, "D"); + tdesc_add_bitfield (type_with_fields, "BTYPE", 10, 11); tdesc_add_flag (type_with_fields, 12, "SSBS"); tdesc_add_flag (type_with_fields, 20, "IL"); tdesc_add_flag (type_with_fields, 21, "SS"); diff --git a/gdb/features/aarch64-core.xml b/gdb/features/aarch64-core.xml index d63456956fd..a328ede508c 100644 --- a/gdb/features/aarch64-core.xml +++ b/gdb/features/aarch64-core.xml @@ -61,6 +61,9 @@ + + + -- 2.25.1