diff options
author | Tom Tromey <tromey@redhat.com> | 2008-09-27 21:40:49 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-09-27 21:40:49 +0000 |
commit | 2fae03e85bab97b883120cf0f5dbaacad2dd141f (patch) | |
tree | b20a29c9e4d8df98c7d4472fc190e308a568f6fd /gdb/doc | |
parent | 5c6ce71d76dc5618b6ebfc967e5c4b99d701ef50 (diff) | |
download | gdb-2fae03e85bab97b883120cf0f5dbaacad2dd141f.zip gdb-2fae03e85bab97b883120cf0f5dbaacad2dd141f.tar.gz gdb-2fae03e85bab97b883120cf0f5dbaacad2dd141f.tar.bz2 |
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.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index b75da64..6d1c713 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,10 @@ 2008-09-27 Tom Tromey <tromey@redhat.com> + * gdb.texinfo (Macros): Remove text about stringification, + varargs, and splicing. + +2008-09-27 Tom Tromey <tromey@redhat.com> + * gdbint.texinfo (Language Support): Remove text about omitting support for a language. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index d46f848..9db0ff8 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -8133,10 +8133,6 @@ uses the macros in scope at that frame's source code line. Otherwise, @value{GDBN} uses the macros in scope at the current listing location; see @ref{List}. -At the moment, @value{GDBN} does not support the @code{##} -token-splicing operator, the @code{#} stringification operator, or -variable-arity macros. - Whenever @value{GDBN} evaluates an expression, it always expands any macro invocations present in the expression. @value{GDBN} also provides the following commands for working with macros explicitly. |