From: Luis Machado Date: Thu, 12 Mar 2020 16:59:45 +0000 (-0300) Subject: [General] Add new builtin types to support capabilities X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5b477c563bc738ec4316cd1dcf2bd870bb4aa3f;p=thirdparty%2Fbinutils-gdb.git [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. --- 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. */