From 2fae03e85bab97b883120cf0f5dbaacad2dd141f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 27 Sep 2008 21:40:49 +0000 Subject: gdb * NEWS: Update. * macrocmd.c (extract_identifier): Add is_parameter argument. (macro_define_command): Update. (macro_undef_command): Likewise. * macroexp.c (stringify): New function. (find_parameter): Likewise. (gather_arguments): Add nargs argument. Handle varargs. (substitute_args): Add is_varargs and va_arg_name arguments. Handle varargs, splicing, stringification. Use find_parameter. (expand): Handle varargs. gdb/doc * gdb.texinfo (Macros): Remove text about stringification, varargs, and splicing. gdb/testsuite * gdb.base/macscp.exp: Add tests for stringification, splicing, and varargs. --- gdb/NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 4c9af82..46aa1448 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -22,6 +22,10 @@ For instance, consider: If the user types TAB at the end of this command line, the available completions will be "f1" and "f2". +* GDB now supports the token-splicing (##) and stringification (#) +operators when expanding macros. It also supports variable-arity +macros. + * New remote packets qSearch:memory: -- cgit v1.1