diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-04-21 10:13:05 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2009-04-21 10:13:05 +0000 |
commit | 29b0e8a24aad93899d3d81d9e43493adfa83c930 (patch) | |
tree | 320900356a949dd9b985d39cb6be0c3c0eaab724 /gdb/doc | |
parent | ccabeb57ba166e3c9a5ec72fec715f05e1a93e2a (diff) | |
download | gdb-29b0e8a24aad93899d3d81d9e43493adfa83c930.zip gdb-29b0e8a24aad93899d3d81d9e43493adfa83c930.tar.gz gdb-29b0e8a24aad93899d3d81d9e43493adfa83c930.tar.bz2 |
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.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 13 |
2 files changed, 17 insertions, 0 deletions
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 <joseph@codesourcery.com> + + * gdb.texinfo (Source Path): Document --with-relocated-sources. + 2009-04-18 Carlos O'Donell <carlos@codesourcery.com> Joseph Myers <joseph@codesourcery.com> 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{} |