[gdb/testsuite] Handle precise-aligned-alloc.c for remote host
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)
commit4581f89b8d7de193605e39861c87359c9ea473cf
treec0c68d83c20f070393b63cab3602677c099e4eb8
parenta14e3d11b2656355ca2c3d5b5a9f05e46f71e897
[gdb/testsuite] Handle precise-aligned-alloc.c for remote host

With test-case gdb.arch/i386-sse.exp (and likewise gdb.arch/i386-avx.exp) and
host board local-remote-host-notty and target board native-gdbserver I run
into:
...
gdb compile failed, i386-sse.c:68:10: fatal error: \
  ../lib/precise-aligned-alloc.c: No such file or directory
 #include "../lib/precise-aligned-alloc.c"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

Fix this using '#include "precise-aligned-alloc.c"' and making that work with
non-remote and remote host.

Tested on x86_64-linux.
gdb/testsuite/gdb.arch/i386-avx.c
gdb/testsuite/gdb.arch/i386-avx.exp
gdb/testsuite/gdb.arch/i386-sse.c
gdb/testsuite/gdb.arch/i386-sse.exp
gdb/testsuite/lib/gdb.exp