This patch adds some required builtin types so GDB can properly support
capabilities.
We need a data capability and a code capability. Those are not expected to
yield valid conversions between themselves.
gdb/ChangeLog
2020-10-20 Luis Machado <luis.machado@arm.com>
* gdbtypes.h (enum type_code) <TYPE_CODE_CAPABILITY>: New enum.
(struct builtin_type) <builtin_data_addr_capability>
<builtin_code_addr_capability>: New fields.
for each of the namelist items. GDB process these namelist dies
and print namelist variables during print and ptype commands. */
TYPE_CODE_NAMELIST,
+
+ /* Capability type. */
+ TYPE_CODE_CAPABILITY,
};
/* * Some bits for the type's instance_flags word. See the macros
struct type *builtin_func_func;
+ /* Data address capability. */
+ struct type *builtin_data_addr_capability;
+
+ /* Code address capability. */
+ struct type *builtin_code_addr_capability;
+
/* Special-purpose types. */
/* * This type is used to represent a GDB internal function. */