From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26194 invoked by alias); 4 Feb 2010 18:24:10 -0000 Received: (qmail 26185 invoked by uid 22791); 4 Feb 2010 18:24:09 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Feb 2010 18:24:05 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o14IO44P027455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Feb 2010 13:24:04 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o14IO3YJ013301; Thu, 4 Feb 2010 13:24:03 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o14INxiC005831; Thu, 4 Feb 2010 13:23:59 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 1F8F037996D; Thu, 4 Feb 2010 11:23:59 -0700 (MST) From: Tom Tromey To: gdb-patches@sourceware.org Subject: RFA: fix documentation for file -readnow Reply-To: tromey@redhat.com Date: Thu, 04 Feb 2010 18:24:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-02/txt/msg00129.txt.bz2 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 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