[gdb/testsuite] Fix have_index for remote host
authorTom de Vries <tdevries@suse.de>
Mon, 27 Mar 2023 11:58:09 +0000 (13:58 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 27 Mar 2023 11:58:09 +0000 (13:58 +0200)
commit845d99df89b8eee01de354f49489b2863673122c
tree59e5786ceef1c2f6a04e97781b82eb2713257d79
parent88fc1be26acbd83afed2eb8fc7e364cd45447ba3
[gdb/testsuite] Fix have_index for remote host

Proc have_index is mostly used with $binfile, which gives problems
for remote host.

Fix this by using "file tail" on the proc argument.

Tested on x86_64-linux.
gdb/testsuite/lib/gdb.exp