From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28100 invoked by alias); 28 Sep 2011 07:49:25 -0000 Received: (qmail 28085 invoked by uid 22791); 28 Sep 2011 07:49:22 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Sep 2011 07:48:59 +0000 Received: from nat-jpt.mentorg.com ([192.94.33.2] helo=PR1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1R8ot0-0002gR-7x from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 28 Sep 2011 00:48:58 -0700 Received: from [172.30.112.173] ([172.30.112.173]) by PR1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Sep 2011 16:48:57 +0900 Message-ID: <4E82D15B.1080804@codesourcery.com> Date: Wed, 28 Sep 2011 08:26:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [patch, doc] add-symbol-file Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00467.txt.bz2 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 * 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.