Re: [rfc] Re: Remote testsuite problem: invalid executable cache

Mark Kettenis
2011-07-24T17:41:15Z

> Date: Fri, 22 Jul 2011 19:43:34 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
>
> Index: gdb/testsuite/gdb.python/py-mi.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-mi.exp,v
> retrieving revision 1.11
> diff -u -p -r1.11 py-mi.exp
> --- gdb/testsuite/gdb.python/py-mi.exp 16 May 2011 13:56:40 -0000 1.11
> +++ gdb/testsuite/gdb.python/py-mi.exp 22 Jul 2011 17:34:25 -0000
> @@ -286,7 +286,7 @@ mi_list_varobj_children nstype2 {
>
> # C++ MI tests
> gdb_exit
> -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
> +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-c++" \
> executable {debug c++ additional_flags=-DMI}] != "" } {
> untested "Couldn't compile ${srcfile} in c++ mode"
> return -1
> @@ -297,7 +297,7 @@ if [mi_gdb_start] {
> }
> mi_delete_breakpoints
> mi_gdb_reinitialize_dir $srcdir/$subdir
> -mi_gdb_load ${binfile}
> +mi_gdb_load ${binfile}-c++

Using the '+' character in filenames may not be the best idea.