From: Luis Machado Date: Wed, 17 Nov 2021 13:02:44 +0000 (-0300) Subject: Expose the BTI BTYPE more explicitly in the registers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1aed145ad6475a3be195f0b3444c14ecd84068e4;p=binutils-gdb.git 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 ] --- 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 @@ + + +