From: Simon Marchi Date: Tue, 22 Sep 2015 20:41:08 +0000 (-0400) Subject: doc: Fix substitute-path example X-Git-Tag: users/hjl/linux/release/2.25.51.0.4~1^2~23^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c58b006be334ee40a9df0e9a2c4ff7be470735a8;p=thirdparty%2Fbinutils-gdb.git doc: Fix substitute-path example Found by Marc Khouzam. gdb/doc/ChangeLog: * gdb.texinfo (Specifying Source Directories): Fix substitute-path example. --- diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 9164b89379e..dc9bc886666 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-22 Simon Marchi + + * gdb.texinfo (Specifying Source Directories): Fix + substitute-path example. + 2015-09-18 Markus Metzger * gdb.texinfo (All-Stop Mode): Describe new scheduler-locking mode. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 06870396301..57e47b84d09 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -7983,11 +7983,11 @@ For example, if the file @file{/foo/bar/baz.c} was moved to @file{/mnt/cross/baz.c}, then the command @smallexample -(@value{GDBP}) set substitute-path /usr/src /mnt/cross +(@value{GDBP}) set substitute-path /foo/bar /mnt/cross @end smallexample @noindent -will tell @value{GDBN} to replace @samp{/usr/src} with +will tell @value{GDBN} to replace @samp{/foo/bar} with @samp{/mnt/cross}, which will allow @value{GDBN} to find the file @file{baz.c} even though it was moved.