aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/line-symtabs.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-10-18 15:32:47 +0200
committerTom de Vries <tdevries@suse.de>2022-10-18 15:32:47 +0200
commit0df940ee00806ce1e4d443eac27bddc2662d1897 (patch)
tree4e0db475b2ef5c794baf16394f807d686a9ab6ca /gdb/testsuite/gdb.base/line-symtabs.exp
parent21b61fe24223da81fcc35d2dfd3893f01285e2a5 (diff)
downloadfsf-binutils-gdb-0df940ee00806ce1e4d443eac27bddc2662d1897.zip
fsf-binutils-gdb-0df940ee00806ce1e4d443eac27bddc2662d1897.tar.gz
fsf-binutils-gdb-0df940ee00806ce1e4d443eac27bddc2662d1897.tar.bz2
[gdb/testsuite] Handle header files with local-remote-host.exp
With test-case gdb.base/included.exp and host board local-remote-host.exp with tentative fix for PR29697 I run into: ... included.c:18:10: fatal error: included.h: No such file or directory #include "included.h" ^~~~~~~~~~~~ compilation terminated. ... Fix this by adding the missing gdb_remote_download calls. Likewise in a few other test-cases. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.base/line-symtabs.exp')
-rw-r--r--gdb/testsuite/gdb.base/line-symtabs.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/line-symtabs.exp b/gdb/testsuite/gdb.base/line-symtabs.exp
index aec2d5a..c5be941 100644
--- a/gdb/testsuite/gdb.base/line-symtabs.exp
+++ b/gdb/testsuite/gdb.base/line-symtabs.exp
@@ -16,6 +16,10 @@
standard_testfile .c line-symtabs.h
+if { [is_remote host] } {
+ gdb_remote_download host $srcdir/$subdir/$srcfile2
+}
+
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1
}