summaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-06-26 20:58:48 +0000
committerTom Tromey <tromey@redhat.com>2002-06-26 20:58:48 +0000
commit40dd22482b55a4d72a9c21cbc975e6b18df7c360 (patch)
treeeb958fb75d055fada4fae68a4db0b953c817c0d1 /gdb/doc
parent9f064c95194a51d61bfcff02b4fabbd183fd4aae (diff)
downloadbinutils-40dd22482b55a4d72a9c21cbc975e6b18df7c360.tar.gz
binutils-40dd22482b55a4d72a9c21cbc975e6b18df7c360.tar.bz2
binutils-40dd22482b55a4d72a9c21cbc975e6b18df7c360.zip
* gdbint.texinfo (User Interface): Mention add_setshow_cmd and
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdbint.texinfo10
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index bec20677077..5305dabc09d 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-26 Tom Tromey <tromey@redhat.com>
+
+ * gdbint.texinfo (User Interface): Mention add_setshow_cmd and
+ add_setshow_cmd_full.
+
2002-06-25 Don Howard <dhoward@redhat.com>
* gdb.texinfo (Memory Region Attributes): Document new behavior
diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo
index bb787a2b3f6..b3cfefbae3a 100644
--- a/gdb/doc/gdbint.texinfo
+++ b/gdb/doc/gdbint.texinfo
@@ -50,7 +50,7 @@ Software Foundation raise funds for GNU development.''
@end tex
@vskip 0pt plus 1filll
-Copyright @copyright{} 1990,1991,1992,1993,1994,1996,1998,1999,2000,2001
+Copyright @copyright{} 1990,1991,1992,1993,1994,1996,1998,1999,2000,2001, 2002
Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
@@ -722,6 +722,14 @@ the main command list, and should be used for those commands. The usual
place to add commands is in the @code{_initialize_@var{xyz}} routines at
the ends of most source files.
+@findex add_setshow_cmd
+@findex add_setshow_cmd_full
+To add paired @samp{set} and @samp{show} commands, use
+@code{add_setshow_cmd} or @code{add_setshow_cmd_full}. The former is
+a slightly simpler interface which is useful when you don't need to
+further modify the new command structures, while the latter returns
+the new command structures for manipulation.
+
@cindex deprecating commands
@findex deprecate_cmd
Before removing commands from the command set it is a good idea to