This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/7] gdbserver, common: convert some variadic macros to C99
- From: Tom Tromey <tromey at redhat dot com>
- To: Mircea Gherzan <mircea dot gherzan at intel dot com>
- Cc: palves at redhat dot com, jan dot kratochvil at redhat dot com, gdb-patches at sourceware dot org
- Date: Fri, 28 Jun 2013 09:57:58 -0600
- Subject: Re: [PATCH 2/7] gdbserver, common: convert some variadic macros to C99
- References: <1372322622-3216-1-git-send-email-mircea dot gherzan at intel dot com> <1372322622-3216-3-git-send-email-mircea dot gherzan at intel dot com>
>>>>> "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