]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[General] Add new builtin types to support capabilities
authorLuis Machado <luis.machado@arm.com>
Thu, 12 Mar 2020 16:59:45 +0000 (13:59 -0300)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 22:53:22 +0000 (15:53 -0700)
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.

gdb/gdbtypes.h

index bd192da4b4b50524c599c7c9ebf138836127d8ac..f307ded1eb9dfffcec67491d15f6a4b7efb88b76 100644 (file)
@@ -209,6 +209,9 @@ enum type_code
        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
@@ -2341,6 +2344,12 @@ struct builtin_type
 
   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.  */