[gdb/testsuite] Fix gdb.server/sysroot.exp for remote target
authorTom de Vries <tdevries@suse.de>
Thu, 9 Mar 2023 09:45:03 +0000 (10:45 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 9 Mar 2023 09:45:03 +0000 (10:45 +0100)
commit6407713fab73abcfcf1893451bfc6ac6c91e609c
treec170b09c980fab846006c3256e46ad0fda7e97d2
parented32754a8c7919feffc6ddb66ff1c532e4a4d1cd
[gdb/testsuite] Fix gdb.server/sysroot.exp for remote target

Fix test-case gdb.server/sysroot.exp with target board
remote-gdbserver-on-localhost, by:
- using gdb_remote_download, and
- disabling the "local" scenario for remote host.

Tested on x86_64-linux.
gdb/testsuite/gdb.server/sysroot.exp