From 71eba9c25e23461f8eb3c96e15ea95535b6b51ec Mon Sep 17 00:00:00 2001 From: matt rice Date: Sat, 12 Nov 2011 17:01:12 +0000 Subject: Move info definitions command to an info macro option. --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 15 ++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 86a08c0..9d8da57 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2011-11-12 Matt Rice + + * gdb.texinfo (C Preprocessor Macros): Remove info definitions. + Add arguments to info macro. + 2011-11-10 Tom Tromey * gdb.texinfo (Compilation): Don't mention -gdwarf-2. Link to GCC diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index b0b3052..65f1924 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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 -- cgit v1.1