+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.
+
2014-10-17 Pedro Alves <palves@redhat.com>
PR gdb/17471
# 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"
# 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"
global gdb_prompt
global srcdir
+ set xml_file [gdb_remote_download host "${srcdir}/gdb.xml/trivial.xml"]
+
gdb_start
set xml_missing 0
- gdb_test_multiple "set tdesc filename ${srcdir}/gdb.xml/trivial.xml" "" {
+ gdb_test_multiple "set tdesc filename $xml_file" "" {
-re ".*XML support was disabled at compile time.*$gdb_prompt $" {
set xml_missing 1
}