From 1aed145ad6475a3be195f0b3444c14ecd84068e4 Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Wed, 17 Nov 2021 10:02:44 -0300 Subject: [PATCH] Expose the BTI BTYPE more explicitly in the registers 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.30.2