[gdb/testsuite] Fix gdb.base/return-nodebug.exp with local-remote-host.exp
authorTom de Vries <tdevries@suse.de>
Tue, 18 Oct 2022 13:32:46 +0000 (15:32 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 18 Oct 2022 13:32:46 +0000 (15:32 +0200)
commit95dcf7dff68f1455b3576e291da60a1d949560fb
tree528e43f875e36dd18b2e6fbebe2e3df235422584
parent473487c23ee1213bcba6fce37e8676eb39ab9180
[gdb/testsuite] Fix gdb.base/return-nodebug.exp with local-remote-host.exp

With host board local-remote-host.exp and test-case
gdb.base/return-nodebug.exp, I run into:
...
Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never \
  -DTYPE=signed\ char -c -g  -o return-nodebug-signed-char0.o  \
  /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base/return-nodebug.c \
  (timeout = 300)
builtin_spawn [open ...]^M
gcc: error: char: No such file or directory
...

Avoid the quoting problem by not using spaces in the define.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/return-nodebug.c
gdb/testsuite/gdb.base/return-nodebug.exp
gdb/testsuite/gdb.base/return-nodebug1.c