From e5b477c563bc738ec4316cd1dcf2bd870bb4aa3f Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Thu, 12 Mar 2020 13:59:45 -0300 Subject: [PATCH] [General] Add new builtin types to support capabilities 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 * gdbtypes.h (enum type_code) : New enum. (struct builtin_type) : New fields. --- gdb/gdbtypes.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index bd192da4b4b..f307ded1eb9 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -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. */ -- 2.47.2