From: Joel Brobecker <brobecker@adacore.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Improve help set/unset/show substitute-path
Date: Sat, 13 Jan 2007 14:02:00 -0000 [thread overview]
Message-ID: <20070113140320.GL537@adacore.com> (raw)
In-Reply-To: <uzm8oqpml.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 327 bytes --]
Thanks for the feedback, Eli. With your help, I think this second version
is a huge improvement.
2007-01-13 Joel Brobecker <brobecker@adacore.com>
* source.c (_initialize_source): Improve the help text of
the substitute-path commands.
Tested on x86-linux, no regression.
OK to commit?
Thank you,
--
Joel
[-- Attachment #2: help.diff --]
[-- Type: text/plain, Size: 1616 bytes --]
Index: source.c
===================================================================
RCS file: /cvs/src/src/gdb/source.c,v
retrieving revision 1.77
diff -u -p -r1.77 source.c
--- source.c 9 Jan 2007 17:58:58 -0000 1.77
+++ source.c 13 Jan 2007 14:00:42 -0000
@@ -1997,16 +1997,24 @@ 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);
+Usage: set substitute-path FROM TO\n\
+Add a substitution rule replacing FROM into TO in source file names.\n\
+If a substitution rule was previously set for FROM, the old rule\n\
+is replaced 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."),
+Usage: unset substitute-path [FROM]\n\
+Delete the rule for substituting FROM in source file names. If FROM\n\
+is not specified, all substituting rules are deleted.\n\
+If the debugger cannot find a rule for FROM, it will display a warning."),
&unsetlist);
add_cmd ("substitute-path", class_files, show_substitute_path_command,
- _("Show the current source path substitution rule."),
+ _("\
+Usage: show substitute-path [FROM]\n\
+Print the rule for substituting FROM in source file names. If FROM\n\
+is not specified, print all substitution rules."),
&showlist);
}
next prev parent reply other threads:[~2007-01-13 14:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-12 7:15 Joel Brobecker
2007-01-12 14:36 ` Eli Zaretskii
2007-01-13 14:02 ` Joel Brobecker [this message]
2007-01-13 14:11 ` Eli Zaretskii
2007-01-15 3:58 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070113140320.GL537@adacore.com \
--to=brobecker@adacore.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox