[gdb/testsuite] Set remotedir by default in some boards
authorTom de Vries <tdevries@suse.de>
Fri, 17 Mar 2023 15:06:39 +0000 (16:06 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 17 Mar 2023 15:06:39 +0000 (16:06 +0100)
commit3741934fdb04cde6661335e160249f9a83e498a7
tree8a7791c8b2a0acd7edc43e31b2048c116a40fb29
parent0eb0e0828783c72144676e6a9884d26d960246f8
[gdb/testsuite] Set remotedir by default in some boards

When doing a gdb_simple_compile, and downloading the resulting exec $obj
to target the result $target_obj may be a relative file path, which may give
problems when trying to do:
...
remote_exec target $target_obj
...

Fix/workaround this on some target boards by setting remotedir by default, and
add a corresponding test in gdb.testsuite/board-sanity.exp.

This doesn't work for host/target board local-remote-host-native, so xfail this.

Tested on x86_64-linux.
gdb/testsuite/boards/remote-gdbserver-on-localhost.exp
gdb/testsuite/boards/remote-stdio-gdbserver.exp
gdb/testsuite/gdb.testsuite/board-sanity.exp