aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authormatt rice <ratmice@gmail.com>2011-11-12 17:01:12 +0000
committermatt rice <ratmice@gmail.com>2011-11-12 17:01:12 +0000
commit71eba9c25e23461f8eb3c96e15ea95535b6b51ec (patch)
tree78c31f32af25ca64cae0a5848a5bdbc898b24969 /gdb/doc
parent30fc0b956b7c7d0764af21e9910912cfd46730ff (diff)
downloadgdb-71eba9c25e23461f8eb3c96e15ea95535b6b51ec.zip
gdb-71eba9c25e23461f8eb3c96e15ea95535b6b51ec.tar.gz
gdb-71eba9c25e23461f8eb3c96e15ea95535b6b51ec.tar.bz2
Move info definitions command to an info macro option.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo15
2 files changed, 11 insertions, 9 deletions
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 <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
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