]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Support data_capability and code_capability types + update target description
authorLuis Machado <luis.machado@arm.com>
Tue, 3 Nov 2020 17:08:15 +0000 (14:08 -0300)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 22:53:22 +0000 (15:53 -0700)
commitc6a26c89d540f6cf4fe267a59c8b3ccb21beadec
treeb86658e2c667c0a79d2939cc9378c85ddb4ae6a5
parent1369f4c005eef117b11289e35592ffbb31d1fd87
Support data_capability and code_capability types + update target description

Support the data_capability and code_capability types, which the capability
counterparts of the data_ptr and code_ptr types.

Adjust the Morello C registers to be of data_capability and code_capability
types.

gdb/ChangeLog:

2020-11-11  Luis Machado  <luis.machado@arm.com>

* aarch64-tdep.c (aarch64_address_class_type_flags)
(aarch64_address_class_type_flags_to_name)
(aarch64_address_class_name_to_type_flags): Use
TYPE_INSTANCE_FLAG_CAPABILITY instead of
TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
(aarch64_gdbarch_init): Set capability size to 128.
* features/aarch64-capability.c: Regenerate.
* features/aarch64-capability.xml: Update C register types.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
* gdbarch.sh (code_capability_bit, data_capability)
(dwarf2_capability_size): Remove.
* gdbtypes.c (gdbtypes_post_init): Initialize data_capability and
code_capability types.
* gdbtypes.h (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): Include
TYPE_INSTANCE_FLAG_CAPABILITY in the list of address classes.
(struct builtin_type) <builtin_data_addr_capability>: Rename to
builtin_data_capability.
(struct builtin_type) <builtin_code_addr_capability>: Rename to
builtin_code_capability.
* target-descriptions.c (make_gdb_type): Update type names.

gdbsupport/ChangeLog:

2020-11-11  Luis Machado  <luis.machado@arm.com>

* tdesc.cc (tdesc_predefined_types): Update type names for
capabilities.
gdb/aarch64-tdep.c
gdb/features/aarch64-capability.c
gdb/features/aarch64-capability.xml
gdb/gdbarch-components.py
gdb/gdbarch-gen.h
gdb/gdbarch.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/target-descriptions.c
gdbsupport/tdesc.cc