This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Copy xml files to host
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Thu, 16 Oct 2014 18:58:51 +0100
- Subject: Re: [PATCH] Copy xml files to host
- Authentication-results: sourceware.org; auth=none
- References: <1413466273-23012-1-git-send-email-yao at codesourcery dot com>
On 10/16/2014 02:31 PM, Yao Qi wrote:
> 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-16 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.
Looks good.
Thanks,
Pedro Alves