This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove unused and probably incorrect macro TYPE_FN_FIELDS
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Siva Chandra <sivachandra at google dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 16 Apr 2014 08:36:25 -0700
- Subject: Re: [PATCH] Remove unused and probably incorrect macro TYPE_FN_FIELDS
- Authentication-results: sourceware.org; auth=none
- References: <CAGyQ6gwQ8shtKNL_0d4C9rd-_hBjVfSGg7t5zFCDCuYSiT=U-g at mail dot gmail dot com>
> 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
>
> * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
I'm not aware of the history either, but it's really easy to put back
should there be any reason to, so go ahead and push.
Thanks!
> diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
> index e91ab97..e63d255 100644
> --- a/gdb/gdbtypes.h
> +++ b/gdb/gdbtypes.h
> @@ -1205,7 +1205,6 @@ extern void allocate_gnat_aux_type (struct type *);
> #define TYPE_VPTR_BASETYPE(thistype) TYPE_MAIN_TYPE(thistype)->vptr_basetype
> #define TYPE_DOMAIN_TYPE(thistype) TYPE_MAIN_TYPE(thistype)->vptr_basetype
> #define TYPE_VPTR_FIELDNO(thistype) TYPE_MAIN_TYPE(thistype)->vptr_fieldno
> -#define TYPE_FN_FIELDS(thistype) TYPE_CPLUS_SPECIFIC(thistype)->fn_fields
> #define TYPE_NFN_FIELDS(thistype) TYPE_CPLUS_SPECIFIC(thistype)->nfn_fields
> #define TYPE_SPECIFIC_FIELD(thistype) \
> TYPE_MAIN_TYPE(thistype)->type_specific_field
--
Joel