aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2007-01-15 03:57:39 +0000
committerJoel Brobecker <brobecker@gnat.com>2007-01-15 03:57:39 +0000
commit7ef2b39780f7b9df86b1f128dce535ac0b453985 (patch)
treeae62520385f4a9540f264e68807a9b7094755465 /gdb/source.c
parenta34d126178d258a9041a6e2c10f07846520b05da (diff)
downloadgdb-7ef2b39780f7b9df86b1f128dce535ac0b453985.zip
gdb-7ef2b39780f7b9df86b1f128dce535ac0b453985.tar.gz
gdb-7ef2b39780f7b9df86b1f128dce535ac0b453985.tar.bz2
* source.c (_initialize_source): Improve the help text of
the substitute-path commands.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 38aae31..fa7dd5c 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1997,16 +1997,24 @@ Show number of source lines gdb will list by default."), NULL,
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);
}