diff options
author | Gary Benson <gbenson@redhat.com> | 2015-04-17 09:47:30 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-04-17 09:47:30 +0100 |
commit | a9a5a3d1d27fc443934ed4919f69b34144288cf0 (patch) | |
tree | 3f8c3997e9e9664245cc5033998ba09c965c88ce /gdb/ChangeLog | |
parent | af1900b01b378126d8826591be7b7ec0d18271d7 (diff) | |
download | gdb-a9a5a3d1d27fc443934ed4919f69b34144288cf0.zip gdb-a9a5a3d1d27fc443934ed4919f69b34144288cf0.tar.gz gdb-a9a5a3d1d27fc443934ed4919f69b34144288cf0.tar.bz2 |
Use gdb_sysroot for main executable on attach
This commit updates exec_file_locate_attach to use exec_file_find
to compute the full pathname of the main executable in some cases.
The net effect of this is that the main executable's path will be
prefixed with gdb_sysroot in the same way that shared library paths
currently are.
gdb/ChangeLog:
* exec.c (solist.h): New include.
(exec_file_locate_attach): Prefix absolute executable
paths with gdb_sysroot if set.
* NEWS: Mention that executable paths may be prepended
with sysroot.
gdb/doc/ChangeLog:
* gdb.texinfo (set sysroot): Document that "set sysroot" also
applies to executable paths if supplied to GDB as absolute.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bfd70a6..af85385 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2015-04-17 Gary Benson <gbenson@redhat.com> + * exec.c (solist.h): New include. + (exec_file_locate_attach): Prefix absolute executable + paths with gdb_sysroot if set. + * NEWS: Mention that executable paths may be prepended + with sysroot. + +2015-04-17 Gary Benson <gbenson@redhat.com> + * solist.h (exec_file_find): New declaration. * solib.c (solib_find_1): New function, factored out from... (solib_find): ...here. |