From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13713 invoked by alias); 12 Jan 2007 07:15:07 -0000 Received: (qmail 13703 invoked by uid 22791); 12 Jan 2007 07:15:06 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 Jan 2007 07:14:59 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 20E4748CEF4 for ; Fri, 12 Jan 2007 02:12:35 -0500 (EST) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24147-01-6 for ; Fri, 12 Jan 2007 02:12:34 -0500 (EST) Received: from takamaka.act-europe.fr (AStDenis-105-1-2-121.w81-248.abo.wanadoo.fr [81.248.193.121]) by nile.gnat.com (Postfix) with ESMTP id B80C848CE2C for ; Fri, 12 Jan 2007 02:12:33 -0500 (EST) Received: by takamaka.act-europe.fr (Postfix, from userid 1000) id 4B1F434C099; Fri, 12 Jan 2007 11:13:23 +0400 (RET) Date: Fri, 12 Jan 2007 07:15:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [RFA] Improve help set/unset/show substitute-path Message-ID: <20070112071323.GJ537@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ABTtc+pdwF7KHXCz" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i 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: 2007-01/txt/msg00314.txt.bz2 --ABTtc+pdwF7KHXCz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 550 Hello, As promised to Daniel, hopefully the following patch will make the help text of the vaious substitute-path commands a bit better. Anyone either wanting to refresh his memory about the usage should now be able to use the help text for that. It's also easier to use the command without having read the documentation. 2007-01-12 Joel Brobecker * source.c (_initialize_source): Improve the help text of the substitute-path commands. Tested on x86-linux, no regression. OK to commit? Thanks, -- Joel --ABTtc+pdwF7KHXCz Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="help.diff" Content-length: 1704 Index: source.c =================================================================== RCS file: /cvs/src/src/gdb/source.c,v retrieving revision 1.76 diff -u -p -r1.76 source.c --- source.c 8 Aug 2006 22:06:06 -0000 1.76 +++ source.c 12 Jan 2007 06:32:06 -0000 @@ -1997,16 +2007,26 @@ Show number of source lines gdb will lis add_cmd ("substitute-path", class_files, set_substitute_path_command, _("\ -Add a source path substitution rule. If a substitution rule was previously\n\ -set, it is overridden."), &setlist); +set substitute-path FROM TO\n\ +Add a source path substitution rule replacing FROM into TO in source paths.\n\ +If a substitution rule was previously set for FROM, the old rule is replaced\n\ +by the new one."), + &setlist); add_cmd ("substitute-path", class_files, unset_substitute_path_command, _("\ -Remove the current source path substitution rule. This has no effect\n\ -if no path substitution rule was previously specified."), +unset substitute-path [FROM]\n\ +If a path is specified (FROM), delete the associated rule from the current\n\ +list of substitution rules. A warning is emmitted by the debugger if\n\ +no rule could be found.\n\ +If no path is specified, then all substitution rules are deleted."), &unsetlist); add_cmd ("substitute-path", class_files, show_substitute_path_command, - _("Show the current source path substitution rule."), + _("\ +show substitute-path [FROM]\n\ +If a path is specified (FROM), print the source path substitution rule which\n\ +would rewrite that path.\n\ +If no path is specified, print all source path substitution rules."), &showlist); } --ABTtc+pdwF7KHXCz--