]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix set sysroot command on AIX
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 14 Oct 2016 13:04:04 +0000 (15:04 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 14 Oct 2016 13:04:04 +0000 (15:04 +0200)
commit754c39c2f32a796ad9983836deb7c4429c808e48
treea65f843e15c9d2ee139e597e95fec08e35ba1500
parentab2c2251daf50e5ce733d33b803eb469b3ba1d80
Fix set sysroot command on AIX

set sysroot command on AIX has no effect if a program depends on shared
library archives (.a).  Fixed by using solib_find and solib_bfd_fopen
instead of gdb_bfd_open in solib_aix_bfd_open.

gdb/
2016-10-14  Sangamesh Mallayya  <sangamesh.swamy@in.ibm.com>
    Ulrich Weigand  <uweigand@de.ibm.com>

* solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
path is set properly if program has a dependency on .a archive and
sysroot is set via set sysroot command.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
gdb/ChangeLog
gdb/solib-aix.c