PR macros/12999
authormatt rice <ratmice@gmail.com>
Thu, 21 Jul 2011 15:13:30 +0000 (15:13 +0000)
committermatt rice <ratmice@gmail.com>
Thu, 21 Jul 2011 15:13:30 +0000 (15:13 +0000)
commit9b158ba08eb1ad14dc2324b8391263b228fa928a
tree29747b586e1e18155aaf1ce9de26781e9468e1ba
parentd17b6f81012b6844de08934193fe7cb7db8cbd5f
PR macros/12999
* macrotab.h (macro_callback_fn): Add new arguments to callback.
* macrotab.c (foreach_macro): Ditto.
(foreach_macro_in_scope): Ditto.
* macrocmd.c (print_macro_callback): New function.
(info_macro_command): Move some code to print_macro_definition.
(print_macro_definition): New function.
(print_one_macro): Add new arguments to callback.

testsuite/
* gdb.base/info-macros.c: New test sources.
* gdb.base/info-macros.exp: New tests.

docs/
* gdb.texinfo (Macros): Add info definitions and info macros commands.
Update text and cindex entries for info macro command.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/macrocmd.c
gdb/macrotab.c
gdb/macrotab.h
gdb/symtab.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/info-macros.c [new file with mode: 0644]
gdb/testsuite/gdb.base/info-macros.exp [new file with mode: 0644]