public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] expand -fdebug-prefix-map documentation
@ 2017-10-26  1:44 Jim Wilson
  2017-10-26 17:09 ` Sandra Loosemore
  2017-10-26 17:52 ` Gerald Pfeifer
  0 siblings, 2 replies; 5+ messages in thread
From: Jim Wilson @ 2017-10-26  1:44 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jim Wilson, Gerald Pfeifer

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

The current documentation doesn't explain what the option is for, or
how one might use it.  The attached patch expands the documentation a
bit to try to explain this.

Tested with a make doc, and verifying that the gcc.info file looks OK.
 And tested by verifying that the option works the way I think it does..

OK?

Jim

[-- Attachment #2: debug-prefix-map.txt --]
[-- Type: text/plain, Size: 1028 bytes --]

2017-10-25  Jim Wilson  <wilson@tuliptree.org>

	gcc/
	* doc/invoke.texi (-fdebug-prefix-map): Expand documentation.

Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	(revision 254023)
+++ gcc/doc/invoke.texi	(working copy)
@@ -6981,7 +6981,12 @@ link processing time.  Merging is enabled by defau
 @item -fdebug-prefix-map=@var{old}=@var{new}
 @opindex fdebug-prefix-map
 When compiling files in directory @file{@var{old}}, record debugging
-information describing them as in @file{@var{new}} instead.
+information describing them as in @file{@var{new}} instead.  This can be
+used to replace a build time path with an install time path in the debug info.
+It can also be used to change an absolute path to a relative path by using
+@file{.} for @var{new}.  This can give more reproducible builds, which are
+location independent, but may require an extra command to tell gdb where to
+find the source files.
 
 @item -fvar-tracking
 @opindex fvar-tracking

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] expand -fdebug-prefix-map documentation
  2017-10-26  1:44 [PATCH] expand -fdebug-prefix-map documentation Jim Wilson
@ 2017-10-26 17:09 ` Sandra Loosemore
  2017-10-26 17:52 ` Gerald Pfeifer
  1 sibling, 0 replies; 5+ messages in thread
From: Sandra Loosemore @ 2017-10-26 17:09 UTC (permalink / raw)
  To: Jim Wilson, gcc-patches; +Cc: Gerald Pfeifer

On 10/25/2017 06:26 PM, Jim Wilson wrote:

> Index: gcc/doc/invoke.texi
> ===================================================================
> --- gcc/doc/invoke.texi	(revision 254023)
> +++ gcc/doc/invoke.texi	(working copy)
> @@ -6981,7 +6981,12 @@ link processing time.  Merging is enabled by defau
>  @item -fdebug-prefix-map=@var{old}=@var{new}
>  @opindex fdebug-prefix-map
>  When compiling files in directory @file{@var{old}}, record debugging
> -information describing them as in @file{@var{new}} instead.
> +information describing them as in @file{@var{new}} instead.  This can be
> +used to replace a build time path with an install time path in the debug info.

build-time path, install-time path

> +It can also be used to change an absolute path to a relative path by using
> +@file{.} for @var{new}.  This can give more reproducible builds, which are
> +location independent, but may require an extra command to tell gdb where to
> +find the source files.
>
>  @item -fvar-tracking
>  @opindex fvar-tracking

OK with that tweak to the hyphenation.

-Sandra

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] expand -fdebug-prefix-map documentation
  2017-10-26  1:44 [PATCH] expand -fdebug-prefix-map documentation Jim Wilson
  2017-10-26 17:09 ` Sandra Loosemore
@ 2017-10-26 17:52 ` Gerald Pfeifer
  2017-10-26 18:54   ` Sandra Loosemore
  1 sibling, 1 reply; 5+ messages in thread
From: Gerald Pfeifer @ 2017-10-26 17:52 UTC (permalink / raw)
  To: Jim Wilson, Sandra Loosemore; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 698 bytes --]

On Wed, 25 Oct 2017, Jim Wilson wrote:
> The current documentation doesn't explain what the option is for, or
> how one might use it.  The attached patch expands the documentation a
> bit to try to explain this.

> OK?

Thanks you for fleshing this out, Jim!

This looks fine to me (modula Sandra's note).  Just a question: would
we refer to GDB instead of gdb here?  It feels a little in between to
me, whether we are referring to the tool or the actual binary.  I'm
sure Sandra will have guidance for us. ;-)

+@file{.} for @var{new}.  This can give more reproducible builds, which are
+location independent, but may require an extra command to tell gdb where to
+find the source files.
 
Gerald

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] expand -fdebug-prefix-map documentation
  2017-10-26 17:52 ` Gerald Pfeifer
@ 2017-10-26 18:54   ` Sandra Loosemore
  2017-10-26 21:49     ` Jim Wilson
  0 siblings, 1 reply; 5+ messages in thread
From: Sandra Loosemore @ 2017-10-26 18:54 UTC (permalink / raw)
  To: Gerald Pfeifer, Jim Wilson; +Cc: gcc-patches

On 10/26/2017 11:47 AM, Gerald Pfeifer wrote:
> On Wed, 25 Oct 2017, Jim Wilson wrote:
>> The current documentation doesn't explain what the option is for, or
>> how one might use it.  The attached patch expands the documentation a
>> bit to try to explain this.
>
>> OK?
>
> Thanks you for fleshing this out, Jim!
>
> This looks fine to me (modula Sandra's note).  Just a question: would
> we refer to GDB instead of gdb here?  It feels a little in between to
> me, whether we are referring to the tool or the actual binary.  I'm
> sure Sandra will have guidance for us. ;-)

Hmmm, yes.  "GDB" is the preferred spelling elsewhere in the manual.

-Sandra

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] expand -fdebug-prefix-map documentation
  2017-10-26 18:54   ` Sandra Loosemore
@ 2017-10-26 21:49     ` Jim Wilson
  0 siblings, 0 replies; 5+ messages in thread
From: Jim Wilson @ 2017-10-26 21:49 UTC (permalink / raw)
  To: Sandra Loosemore, Gerald Pfeifer; +Cc: gcc-patches

On Thu, 2017-10-26 at 12:35 -0600, Sandra Loosemore wrote:
> On 10/26/2017 11:47 AM, Gerald Pfeifer wrote:
> > Thanks you for fleshing this out, Jim!
> > 
> > This looks fine to me (modula Sandra's note).  Just a question:
> > would
> > we refer to GDB instead of gdb here?  It feels a little in between
> > to
> > me, whether we are referring to the tool or the actual binary.  I'm
> > sure Sandra will have guidance for us. ;-)
> Hmmm, yes.  "GDB" is the preferred spelling elsewhere in the manual.

Checked in with the two corrections.

Jim

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-26 21:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26  1:44 [PATCH] expand -fdebug-prefix-map documentation Jim Wilson
2017-10-26 17:09 ` Sandra Loosemore
2017-10-26 17:52 ` Gerald Pfeifer
2017-10-26 18:54   ` Sandra Loosemore
2017-10-26 21:49     ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).