aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-sse.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-17 16:06:39 +0100
committerTom de Vries <tdevries@suse.de>2023-03-17 16:06:39 +0100
commit4581f89b8d7de193605e39861c87359c9ea473cf (patch)
treec0c68d83c20f070393b63cab3602677c099e4eb8 /gdb/testsuite/gdb.arch/i386-sse.exp
parenta14e3d11b2656355ca2c3d5b5a9f05e46f71e897 (diff)
downloadbinutils-4581f89b8d7de193605e39861c87359c9ea473cf.zip
binutils-4581f89b8d7de193605e39861c87359c9ea473cf.tar.gz
binutils-4581f89b8d7de193605e39861c87359c9ea473cf.tar.bz2
[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.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-sse.exp')
-rw-r--r--gdb/testsuite/gdb.arch/i386-sse.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-sse.exp b/gdb/testsuite/gdb.arch/i386-sse.exp
index 6df98ec..3c66589 100644
--- a/gdb/testsuite/gdb.arch/i386-sse.exp
+++ b/gdb/testsuite/gdb.arch/i386-sse.exp
@@ -32,6 +32,8 @@ if { [test_compiler_info gcc*] || [test_compiler_info clang*] } {
lappend flags "additional_flags=-msse -I${srcdir}/.."
}
+lappend_include_file flags $srcdir/lib/precise-aligned-alloc.c
+
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
$flags] != "" } {
unsupported "compiler does not support SSE"