This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch, doc] add-symbol-file
- From: Yao Qi <yao at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 28 Sep 2011 15:48:43 +0800
- Subject: [patch, doc] add-symbol-file
In GDB, when using add-symbol-file with `-s' option, `address' is still
needed, but `address' is missing corresponding documentation. Beside
this, there should be a space after `-s'. This patch is to address
them. OK for mainline?
--
Yao (éå)
gdb/doc:
2011-09-28 Yao Qi <yao@codesourcery.com>
* gdb.texinfo (Files): Update options for `add-symbol-file'.
Add one space after option `-s'.
---
gdb/doc/gdb.texinfo | 4 ++--
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 051377d..75ac160 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -14817,14 +14817,14 @@ the program is running. To do this, use the @code{kill} command
@cindex dynamic linking
@item add-symbol-file @var{filename} @var{address}
@itemx add-symbol-file @var{filename} @var{address} @r{[} -readnow @r{]}
-@itemx add-symbol-file @var{filename} @r{-s}@var{section} @var{address} @dots{}
+@itemx add-symbol-file @var{filename} @var{address} @r{-s} @var{section} @var{address} @dots{}
The @code{add-symbol-file} command reads additional symbol table
information from the file @var{filename}. You would use this command
when @var{filename} has been dynamically loaded (by some other means)
into the program that is running. @var{address} should be the memory
address at which the file has been loaded; @value{GDBN} cannot figure
this out for itself. You can additionally specify an arbitrary number
-of @samp{@r{-s}@var{section} @var{address}} pairs, to give an explicit
+of @samp{@r{-s} @var{section} @var{address}} pairs, to give an explicit
section name and base address for that section. You can specify any
@var{address} as an expression.