From: Eli Zaretskii <eliz@gnu.org>
To: "Joseph S. Myers" <joseph@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Add --with-relocated-sources configure option
Date: Mon, 20 Apr 2009 21:10:00 -0000 [thread overview]
Message-ID: <83tz4jghf0.fsf@gnu.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0904202024560.21748@digraph.polyomino.org.uk>
> Date: Mon, 20 Apr 2009 20:26:08 +0000 (UTC)
> From: "Joseph S. Myers" <joseph@codesourcery.com>
>
> gdb/doc:
> 2009-04-20 Joseph Myers <joseph@codesourcery.com>
>
> * gdb.texinfo (Source Path): Document --with-relocated-sources.
This part is okay (assuming that the code is approved), with a few
comments:
> +@cindex @samp{--with-relocated-sources}
> +You can configure a default source path substitution rule by
> +configuring @value{GDBN} with the
This needs an additional index entry which does not require to
remember the name of the option by heart. Something like
@cindex default source path substitution
> +@samp{--with-relocated-sources=@var{path}} option. The @var{path}
> +should be the name of a directory under @value{GDBN}'s configured
> +binary prefix (set with @samp{--prefix} or @samp{--exec-prefix}), and
> +paths in debug information under @var{path} will be relocated
> +automatically if the installed @value{GDBN} is moved to a new
> +location.
First, GNU coding standards frown on using ``path'' for file names or
directory names (see the node "GNU Manuals" in standards.texi).
Second, the second part of the last sentence above, the one which
starts with "and paths", got me confused. Let's see if I understood
your intent. Assuming I configured GDB like this:
./configure --prefix=/some/dir --with-relocated-sources=/some/dir/bar
then, even if the GDB tree is moved to /elsewhere/foo, GDB will
automagically find its sources in /elsewhere/foo/bar. Is that true?
If it's true, then I suggest (1) to drop the word "binary" in "binary
prefix", and (2) rephrase the "will be relocated automatically" part,
because nothing is actually relocated; rather, GDB substitutes the new
path for the old without any explicit command from the user. The text
as written suggests that files are somehow moved (``relocated'')
somewhere.
> This is useful if @value{GDBN}, libraries or executables
> +with debug information and corresponding source code are being
> +distributed together.
Don't you mean that this is useful if they are also _moved_ to a
different location together?
Thanks.
next prev parent reply other threads:[~2009-04-20 21:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 20:26 Joseph S. Myers
2009-04-20 21:10 ` Eli Zaretskii [this message]
2009-04-20 23:15 ` Joseph S. Myers
2009-04-20 23:55 ` Tom Tromey
2009-04-21 3:15 ` Eli Zaretskii
2009-04-20 21:36 ` Tom Tromey
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=83tz4jghf0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=joseph@codesourcery.com \
/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