[PATCH 01/28] introduce CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF and use it

Pedro Alves palves@redhat.com
Wed May 15 15:57:00 GMT 2013


On 04/19/2013 03:27 PM, Tom Tromey wrote:
> --- a/gdb/python/python-internal.h
> +++ b/gdb/python/python-internal.h
> @@ -20,6 +20,13 @@
>  #ifndef GDB_PYTHON_INTERNAL_H
>  #define GDB_PYTHON_INTERNAL_H
>  
> +#ifdef WITH_CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF_ATTRIBUTE
> +#define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF(ARG)		\
> +  __attribute__ ((cpychecker_type_object_for_typedef (ARG)))
> +#else
> +#define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF(ARG)
> +#endif

Could we have a comment here with a short hint at what this is
all about?  I assume from the patch that
WITH_CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF_ATTRIBUTE is defined
by cpychecker itself (not autoconf/config.h), but I can see
future readers getting confused.

Thanks,
-- 
Pedro Alves



More information about the Gdb-patches mailing list