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/gitweb.cgi?a=commitdiff_plain;h=ae6ec5dfcb3ecd503c7b1bb2dad630ea0bae5da8;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/ChangeLog b/gdb/ChangeLog index 415ea5c3874..67008902aca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2020-10-20 Luis Machado + + * gdbtypes.h (enum type_code) : New enum. + (struct builtin_type) + : New fields. + 2020-10-20 Luis Machado * gdb/aarch64-tdep.c: Include gdbsupport/capability.h. diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index e1673658a48..a2158e90916 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -189,7 +189,10 @@ enum type_code TYPE_CODE_INTERNAL_FUNCTION, /* * Methods implemented in extension languages. */ - TYPE_CODE_XMETHOD + TYPE_CODE_XMETHOD, + + /* Capability type. */ + TYPE_CODE_CAPABILITY }; /* * Some bits for the type's instance_flags word. See the macros @@ -2054,6 +2057,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. */