This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/doco] set/unset/show substitute-path documentation


> Date: Thu, 27 Jul 2006 20:52:18 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> 
> Hopefully, I captured that as clearly as possible in the new update.
> Let me know what you think.
> 
> 2006-06-27  Joel Brobecker  <brobecker@adacore.com>
> 
>         * gdb.texinfo (Source Path): Add documentation for new
>         substitute-path commands.

Thanks, I have only a couple of minor comments:

> +For instance, the rule above substituting  @file{/usr/src} into
> +@file{/mnt/cross} will be applied to @file{/usr/src/foo-1.0} but
> +not to @file{/usr/srcs/foo-2.0}.  And because the substitution is

The difference between /usr/src and /usr/srcs is so minor that some
readers might have hard time spotting it.  So maybe make this
/usr/source and /usr/sourceware.

> +For instance, if we had entered the following commands:
> +
> +@smallexample
> +(@value{GDBP}) set substitute-path /usr/src/include /mnt/include
> +(@value{GDBP}) set substitute-path /usr/src /mnt/src
> +@end smallexample
> +
> +@value{GDBN} would then rewrite @file{/usr/src/include/defs.h} into
> +@file{/mnt/include/defs.h} by using the first rule.  However, it would
> +use the second rule to rewrite @file{/usr/src/lib/foo.c} into
> +@file{/mnt/src/lib/foo.c}.

You want @noindent before the last paragraph, to prevent its
indentation as a new paragraph.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]