[gdb/testsuite] Fix gdb.server/sysroot.exp for remote host
authorTom de Vries <tdevries@suse.de>
Tue, 28 Mar 2023 15:48:35 +0000 (17:48 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 28 Mar 2023 15:48:35 +0000 (17:48 +0200)
commit16fe515a1d1855ddc20cee51000dbbf4d7ac06be
treefcc9ba5f3fd5222012c5c24f89fef2f550c58da6
parent3efcb62566c3abff7b373f9c536a51b8b78e59df
[gdb/testsuite] Fix gdb.server/sysroot.exp for remote host

Fix test-case gdb.server/sysroot.exp for remote host, by:
- using gdb_remote_download, and
- disabling the "local" scenario for remote host/target, unless
  remote host == remote target.

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