]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: get real executable in gdb.gdb/index-file.exp
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 6 Aug 2025 19:28:19 +0000 (15:28 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 27 Aug 2025 19:57:29 +0000 (15:57 -0400)
commit99c85f05b6e92ffd5d53e72b63d84d2c2b40df5c
tree803b028ecfca0b3157ab9167041573a3f8bc5512
parentbce590b465775329c817297ed670654e6e7cc476
gdb/testsuite: get real executable in gdb.gdb/index-file.exp

Similar to a previous patch, if the gdb executable is in fact a libtool
wrapper, we need to get the path to the real executable to load it in
the top-level gdb.

With this change, the test runs on Cygwin, although I do see two
failures:

    FAIL: gdb.gdb/index-file.exp: debug_names files are identical
    FAIL: gdb.gdb/index-file.exp: debug_str files are identical

Change-Id: Ie06d1ece67e61530e5b664e65b5ef0edccaf6afa
Reviewed-By: Keith Seitz <keiths@redhat.com>
gdb/testsuite/gdb.gdb/index-file.exp
gdb/testsuite/lib/selftest-support.exp