Move info definitions command to an info macro option.

This commit is contained in:
matt rice
2011-11-12 17:01:12 +00:00
parent 30fc0b956b
commit 71eba9c25e
7 changed files with 205 additions and 73 deletions

View File

@ -1,3 +1,8 @@
2011-11-12 Matt Rice <ratmice@gmail.com>
* gdb.texinfo (C Preprocessor Macros): Remove info definitions.
Add arguments to info macro.
2011-11-10 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Compilation): Don't mention -gdwarf-2. Link to GCC

View File

@ -10011,9 +10011,12 @@ can be any string of tokens.
@cindex macro definition, showing
@cindex definition of a macro, showing
@cindex macros, from debug info
@item info macro @var{macro}
Show the current definition of the named @var{macro}, and describe the
source location or compiler command-line where that definition was established.
@item info macro [-a|-all] [--] @var{macro}
Show the current definition or all definitions of the named @var{macro},
and describe the source location or compiler command-line where that
definition was established. The optional double dash is to signify the end of
argument processing and the beginning of @var{macro} for non C-like macros where
the macro may begin with a hyphen.
@kindex info macros
@item info macros @var{linespec}
@ -10021,12 +10024,6 @@ Show all macro definitions that are in effect at the location specified
by @var{linespec}, and describe the source location or compiler
command-line where those definitions were established.
@kindex info definitions
@item info definitions @var{macro}
Show all definitions of the named @var{macro} that are defined in the current
compilation unit, and describe the source location or compiler command-line
where those definitions were established.
@kindex macro define
@cindex user-defined macros
@cindex defining macros interactively