From 29b0e8a24aad93899d3d81d9e43493adfa83c930 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 21 Apr 2009 10:13:05 +0000 Subject: gdb: * configure.ac (--with-relocated-sources): New. * configure, config.in: Regenerate. * source.c (add_substitute_path_rule): Remove static. * source.h (add_substitute_path_rule): Declare. * main.c: Include "source.h". (captured_main): Add substitution rule if RELOC_SRCDIR. gdb/doc: * gdb.texinfo (Source Path): Document --with-relocated-sources. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 13 +++++++++++++ 2 files changed, 17 insertions(+) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 428da00..b0f803b 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2009-04-21 Joseph Myers + + * gdb.texinfo (Source Path): Document --with-relocated-sources. + 2009-04-18 Carlos O'Donell Joseph Myers diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index ebba32f..50949e0 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -5809,6 +5809,19 @@ for any reason a source file that is not relevant to your executable is located at the original location, a substitution rule is the only method available to point @value{GDBN} at the new location. +@cindex @samp{--with-relocated-sources} +@cindex default source path substitution +You can configure a default source path substitution rule by +configuring @value{GDBN} with the +@samp{--with-relocated-sources=@var{dir}} option. The @var{dir} +should be the name of a directory under @value{GDBN}'s configured +prefix (set with @samp{--prefix} or @samp{--exec-prefix}), and +directory names in debug information under @var{dir} will be adjusted +automatically if the installed @value{GDBN} is moved to a new +location. This is useful if @value{GDBN}, libraries or executables +with debug information and corresponding source code are being moved +together. + @table @code @item directory @var{dirname} @dots{} @item dir @var{dirname} @dots{} -- cgit v1.1