This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/7] gdbserver, common: convert some variadic macros to C99


>>>>> "Mircea" == Mircea Gherzan <mircea.gherzan@intel.com> writes:

Mircea>  #ifdef GDBSERVER
Mircea> -#define DEBUG_AGENT(fmt, args...)	\
Mircea> +#define DEBUG_AGENT(...)		\

This is a funny situation.

Officially, GDB is C89, while varargs macros are c99.

However, the existing code here is a GNU extension.  Clearly nobody has
ever tried to compile this code with a compiler other than GCC.

I would like us to adopt C99, but I think this requires some community
agreement.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]