aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/gdb.texinfo
diff options
context:
space:
mode:
authorRoland Pesch <pesch@cygnus>1992-07-09 20:40:39 +0000
committerRoland Pesch <pesch@cygnus>1992-07-09 20:40:39 +0000
commit0fdc6e271746e064c483b5dbb460cd70e0548ef4 (patch)
tree2eed1bd74352bd0901234b18c8297d47bec61438 /gdb/doc/gdb.texinfo
parent368c8614bcd91f301888ee8541df5e1c48998bde (diff)
downloadgdb-0fdc6e271746e064c483b5dbb460cd70e0548ef4.zip
gdb-0fdc6e271746e064c483b5dbb460cd70e0548ef4.tar.gz
gdb-0fdc6e271746e064c483b5dbb460cd70e0548ef4.tar.bz2
(Finally) doc that GDB sometimes inserts quotes for you, on overloaded
symbol completion requests.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r--gdb/doc/gdb.texinfo31
1 files changed, 26 insertions, 5 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 5267136..78fedbf 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -1219,8 +1219,12 @@ of a word. If there's only one possibility, _GDBN__ will fill in the
word, and wait for you to finish the command (or press @key{RET} to
enter it). For example, if you type
+@c FIXME "@key" doesn't distinguish its argument sufficiently to permit
+@c complete accuracy in these examples; space introduced for clarity.
+@c If texinfo enhancements make it unnecessary, it would be nice to
+@c replace " @key" by "@key" in the following...
@example
-(_GDBP__) info bre@key{TAB}
+(_GDBP__) info bre @key{TAB}
@end example
@noindent
@@ -1250,7 +1254,7 @@ function names in your program that begin with those characters, for
example:
@example
-(_GDBP__) b make_@key{TAB}
+(_GDBP__) b make_ @key{TAB}
@exdent _GDBN__ sounds bell; press @key{TAB} again, to see:
make_a_section_from_file make_environ
make_abs_section make_function_type
@@ -1291,11 +1295,28 @@ consider more information than usual when you press @key{TAB} or
@kbd{M-?} to request word completion:
@example
-(_GDBP__) b 'name(@key{M-?}
-name(int) name(float)
-(_GDBP__) b 'name(
+(_GDBP__) b 'bubble( @key{M-?}
+bubble(double,double) bubble(int,int)
+(_GDBP__) b 'bubble(
@end example
+In some cases, _GDBN__ can tell that completing a name will require
+quotes. When this happens, _GDBN__ will insert the quote for you (while
+completing as much as it can) if you do not type the quote in the first
+place:
+
+@example
+(_GDBP__) b bub @key{TAB}
+@exdent _GDBN__ alters your input line to the following, and rings a bell:
+(_GDBP__) b 'bubble(
+@end example
+
+@noindent
+In general, _GDBN__ can tell that a quote is needed (and inserts it) if
+you have not yet started typing the argument list when you ask for
+completion on an overloaded symbol.
+
+
@node Help, , Completion, Commands
@section Getting Help
@cindex online documentation