--- testsuite/lib/gdbserver-support.exp | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/testsuite/lib/gdbserver-support.exp +++ b/testsuite/lib/gdbserver-support.exp @@ -131,6 +131,15 @@ proc find_gdbserver { } { return $gdbserver } + spawn -noecho which $gdbserver + expect { + -re "$gdbserver" { + if { [file executable $expect_out(buffer)] } { + return $expect_out(buffer) + } + } + } + return "" }