修订版 | 599bd15cdae16c5c420c85cf4853fcfd769bce75 (tree) |
---|---|
时间 | 2015-04-02 21:38:29 |
作者 | Gary Benson <gbenson@redh...> |
Commiter | Gary Benson |
Document "target:" sysroot changes
This commit documents the newly added "target:" sysroot feature.
gdb/ChangeLog:
* NEWS: Announce the new default sysroot of "target:".
gdb/doc/ChangeLog:
* gdb.texinfo (set sysroot): Document "target:".
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
2 | 2 | |
3 | + * NEWS: Announce the new default sysroot of "target:". | |
4 | + | |
5 | +2015-04-02 Gary Benson <gbenson@redhat.com> | |
6 | + | |
3 | 7 | * main.c (captured_main): Set gdb_sysroot to "target:" |
4 | 8 | if not otherwise set. |
5 | 9 |
@@ -24,6 +24,13 @@ | ||
24 | 24 | present in the debug info. This typically includes the compiler version |
25 | 25 | and may include things like its command line arguments. |
26 | 26 | |
27 | +* Directory names supplied to the "set sysroot" commands may be | |
28 | + prefixed with "target:" to tell GDB to access shared libraries from | |
29 | + the target system, be it local or remote. This replaces the prefix | |
30 | + "remote:". The default sysroot has been changed from "" to | |
31 | + "target:". "remote:" is automatically converted to "target:" for | |
32 | + backward compatibility. | |
33 | + | |
27 | 34 | * Python Scripting |
28 | 35 | |
29 | 36 | ** gdb.Objfile objects have a new attribute "username", |
@@ -1,3 +1,7 @@ | ||
1 | +2015-04-02 Gary Benson <gbenson@redhat.com> | |
2 | + | |
3 | + * gdb.texinfo (set sysroot): Document "target:". | |
4 | + | |
1 | 5 | 2015-04-01 Sasha Smundak <asmundak@google.com> |
2 | 6 | |
3 | 7 | * doc/python.texi (Writing a Frame Unwinder in Python): Add |
@@ -17854,15 +17854,20 @@ libraries, they need to be laid out in the same way that they are on | ||
17854 | 17854 | the target, with e.g.@: a @file{/lib} and @file{/usr/lib} hierarchy |
17855 | 17855 | under @var{path}. |
17856 | 17856 | |
17857 | -If @var{path} starts with the sequence @file{remote:}, @value{GDBN} will | |
17858 | -retrieve the target libraries from the remote system. This is only | |
17859 | -supported when using a remote target that supports the @code{remote get} | |
17860 | -command (@pxref{File Transfer,,Sending files to a remote system}). | |
17861 | -The part of @var{path} following the initial @file{remote:} | |
17862 | -(if present) is used as system root prefix on the remote file system. | |
17863 | -@footnote{If you want to specify a local system root using a directory | |
17864 | -that happens to be named @file{remote:}, you need to use some equivalent | |
17865 | -variant of the name like @file{./remote:}.} | |
17857 | +If @var{path} starts with the sequence @file{target:} and the target | |
17858 | +system is remote then @value{GDBN} will retrieve the target binaries | |
17859 | +from the remote system. This is only supported when using a remote | |
17860 | +target that supports the @code{remote get} command (@pxref{File | |
17861 | +Transfer,,Sending files to a remote system}). The part of @var{path} | |
17862 | +following the initial @file{target:} (if present) is used as system | |
17863 | +root prefix on the remote file system. If @var{path} starts with the | |
17864 | +sequence @file{remote:} this is converted to the sequence | |
17865 | +@file{target:} by @code{set sysroot}@footnote{Historically the | |
17866 | +functionality to retrieve binaries from the remote system was | |
17867 | +provided by prefixing @var{path} with @file{remote:}}. If you want | |
17868 | +to specify a local system root using a directory that happens to be | |
17869 | +named @file{target:} or @file{remote:}, you need to use some | |
17870 | +equivalent variant of the name like @file{./target:}. | |
17866 | 17871 | |
17867 | 17872 | For targets with an MS-DOS based filesystem, such as MS-Windows and |
17868 | 17873 | SymbianOS, @value{GDBN} tries prefixing a few variants of the target |