gdb/testsuite: respect GDBSERVER variable in remote-stdio-gdbserver "board"
commit43f7c3581f5c615b65f7c15c298c9be20c2597cf
authorJan Vrany <jan.vrany@labware.com>
Fri, 10 Dec 2021 11:43:20 +0000 (10 11:43 +0000)
committerJan Vrany <jan.vrany@labware.com>
Fri, 10 Dec 2021 11:43:20 +0000 (10 11:43 +0000)
treefc186754173ea00627e287a78eb81a2cde5dd786
parentb80a346e3d567b9366a1da123eeae555a44ccf05
gdb/testsuite: respect GDBSERVER variable in remote-stdio-gdbserver "board"

The comment on top of gdb/testsuite/boards/remote-stdio-gdbserver.exp says
that user can specify path to gdbserver on remote system by setting
GDBSERVER variable. However, this variable was ignored and /usr/bin/gdbserver
was used unconditionally.

This commit updates the code to respect GDBSERVER if set and fall back to
/usr/bin/gdbserver if not.
gdb/testsuite/boards/remote-stdio-gdbserver.exp