aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.xml
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-08-15 11:28:39 +0800
committerYao Qi <yao@codesourcery.com>2014-10-17 21:22:55 +0800
commitb22089abcba7cc3be26a9ab7d60e01299ac13ea0 (patch)
tree070908f0d25d9c4bf9cc1487bf98331327e79987 /gdb/testsuite/gdb.xml
parent6c4486e63f7583ed85a0c72841f6ccceebbf858e (diff)
downloadfsf-binutils-gdb-b22089abcba7cc3be26a9ab7d60e01299ac13ea0.zip
fsf-binutils-gdb-b22089abcba7cc3be26a9ab7d60e01299ac13ea0.tar.gz
fsf-binutils-gdb-b22089abcba7cc3be26a9ab7d60e01299ac13ea0.tar.bz2
Copy xml files to host
When I run test with board file local-remote-host-native.exp, I see the following warning, $ make check RUNTESTFLAGS="--host_board=local-remote-host-native --target_board=local-remote-host-native tdesc-arch.exp HOST_DIR=/tmp/foo/" (gdb) set tdesc filename ../../../../git/gdb/testsuite/gdb.xml/trivial.xml^M warning: Could not open "../../../../git/gdb/testsuite/gdb.xml/trivial.xml" (gdb) quit^ because "${srcdir}/gdb.xml/trivial.xml" doesn't exist on host. This patch is to copy trivial.xml to host and the warning goes away. (gdb) set tdesc filename /tmp/foo/trivial.xml^M (gdb) quit^ tdesc-regs.exp has the similar problem that single-reg.xml may not exist on host at all, and it should be copied to host too. gdb/testsuite: 2014-10-17 Yao Qi <yao@codesourcery.com> * lib/gdb.exp (gdb_skip_xml_test): Copy trivial.xml to host. * gdb.xml/tdesc-regs.exp: Copy single-reg.xml to host.
Diffstat (limited to 'gdb/testsuite/gdb.xml')
-rw-r--r--gdb/testsuite/gdb.xml/tdesc-regs.exp8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp b/gdb/testsuite/gdb.xml/tdesc-regs.exp
index 0e4547c..35c5c5a 100644
--- a/gdb/testsuite/gdb.xml/tdesc-regs.exp
+++ b/gdb/testsuite/gdb.xml/tdesc-regs.exp
@@ -75,8 +75,12 @@ switch -glob -- [istarget] {
# support target-defined registers. Verify that we get a warning if
# we try to use them. This not only tests the warning, but also
# reminds maintainers to add test support when they add the feature.
+
+set single_reg_xml [gdb_remote_download host \
+ "$srcdir/$subdir/single-reg.xml"]
+
if {[string equal ${core-regs} ""]} {
- gdb_test "set tdesc file $srcdir/$subdir/single-reg.xml" \
+ gdb_test "set tdesc file $single_reg_xml" \
"warning: Target-supplied registers are not supported.*" \
"set tdesc file single-reg.xml"
unsupported "register tests"
@@ -87,7 +91,7 @@ if {[string equal ${core-regs} ""]} {
# Make sure we reject a description missing standard registers,
# like the PC.
-gdb_test "set tdesc file $srcdir/$subdir/single-reg.xml" \
+gdb_test "set tdesc file $single_reg_xml" \
"warning: Architecture rejected target-supplied description" \
"set tdesc file single-reg.xml"