This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RFA: fix documentation for file -readnow
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 04 Feb 2010 11:23:58 -0700
- Subject: RFA: fix documentation for file -readnow
- Reply-to: tromey at redhat dot com
This patch fixes PR cli/8830.
The bug is that a user got confused by the documentation, which reads:
`symbol-file FILENAME [ -readnow ]'
`file FILENAME [ -readnow ]'
[...]
It turns out that file and symbol-file only accept -readnow as the first
argument.
This patch fixes the documentation to reflect the code.
Ok?
Tom
2010-02-04 Tom Tromey <tromey@redhat.com>
PR cli/8830:
* gdb.texinfo (Files): -readnow comes before the filename for file
and symbol-file.
Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.663
diff -u -r1.663 gdb.texinfo
--- gdb.texinfo 1 Feb 2010 16:09:22 -0000 1.663
+++ gdb.texinfo 4 Feb 2010 18:22:43 -0000
@@ -13825,8 +13825,8 @@
@kindex readnow
@cindex reading symbols immediately
@cindex symbols, reading immediately
-@item symbol-file @var{filename} @r{[} -readnow @r{]}
-@itemx file @var{filename} @r{[} -readnow @r{]}
+@item symbol-file @r{[} -readnow @r{]} @var{filename}
+@itemx file @r{[} -readnow @r{]} @var{filename}
You can override the @value{GDBN} two-stage strategy for reading symbol
tables by using the @samp{-readnow} option with any of the commands that
load symbol table information, if you want to be sure @value{GDBN} has the