aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorThomas Lord <lord@cygnus>1993-10-25 20:55:03 +0000
committerThomas Lord <lord@cygnus>1993-10-25 20:55:03 +0000
commit59168c8b053591d680fdef52b1178ce9bd54f45e (patch)
treed80b9330c8d2af35b6d9145ce8e5d1d0cf7f4c8a /gdb/doc
parent8cfa495040b36ce4b6e05245b67bcdc53c491d66 (diff)
downloadgdb-59168c8b053591d680fdef52b1178ce9bd54f45e.zip
gdb-59168c8b053591d680fdef52b1178ce9bd54f45e.tar.gz
gdb-59168c8b053591d680fdef52b1178ce9bd54f45e.tar.bz2
Changed the DOC parameter type to gdb_define_app_command.
Fixed typo.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/libgdb.texinfo16
2 files changed, 12 insertions, 8 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 7d259a4..2ca5aa7 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,9 @@
Mon Oct 25 03:25:41 1993 Tom Lord (lord@cygnus.com)
+ * libgdb.texinfo (Defining Commands): made the DOC arg
+ to gdb_define_app_command a char * instead of char **
+ per a suggestion from kingdon.
+
* libgdb.texinfo: total rewrite from a different starting
premise.
diff --git a/gdb/doc/libgdb.texinfo b/gdb/doc/libgdb.texinfo
index 34a531a..d699ec8 100644
--- a/gdb/doc/libgdb.texinfo
+++ b/gdb/doc/libgdb.texinfo
@@ -554,7 +554,7 @@ language.
@example
char * @var{name};
gdb_cmd_fn @var{fn};
-char ** @var{doc};
+char * @var{doc};
typedef void (*gdb_cmd_fn) (char * args);
@end example
@@ -567,8 +567,8 @@ Calling this function twice with the same name replaces an earlier
definition, but application commands can not replace builtin commands of
the same name.
-The documentation string of the command is set to a copy of the NULL
-terminated array of strings @var{doc}.
+The documentation string of the command is set to a copy the string
+@var{doc}.
@end deftypefun
@node Variables, Asynchronous, Defining Commands, Top
@@ -690,7 +690,7 @@ The GDB command language contains many @code{set} and @code{show}
commands. These commands are used to modify or examine parameters to
the debugger.
-One difficulty to get the current state 3f a parameter from the
+It is difficult to get the current state of a parameter from the
@code{show} command because @code{show} is very verbose.
@example
@@ -857,15 +857,15 @@ in an earlier example of this section.
(type "struct bytecode_vector")
(address 14336) )
(exp-concat
- "$17 = @{"
+ "$16 = @{"
(exp-attribute
- ( (expression "$17.v")
+ ( (expression "$16.v")
(type "char *")
(address 14336)
- (deref-expression "*$17.v") )
+ (deref-expression "*$16.v") )
"v = 0x38ae0")
(exp-attribute
- ( (expression "$17.v_length")
+ ( (expression "$16.v_length")
(type "int")
(address 14340) )
", v_length = 40")