Index: mi-file.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-file.exp,v retrieving revision 1.7 diff -u -p -r1.7 mi-file.exp --- mi-file.exp 12 Sep 2006 20:11:42 -0000 1.7 +++ mi-file.exp 13 Dec 2006 23:21:31 -0000 @@ -25,6 +25,18 @@ # but to verify the correct output response to MI operations. # +if [target_info exists use_gdb_stub] { + + # When debugging a stub, we can't depend on the current file + # being the default file set by select_source_symtab. + # When the gdb host connects to the stub, the stub will already be + # running the target program stopped at a function + # that probably isn't the one with main. + + verbose "Skipping mi-file.exp." + continue +} + load_lib mi-support.exp set MIFLAGS "-i=mi" Index: mi2-file.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi2-file.exp,v retrieving revision 1.7 diff -u -p -r1.7 mi2-file.exp --- mi2-file.exp 10 Aug 2006 05:27:21 -0000 1.7 +++ mi2-file.exp 13 Dec 2006 23:21:31 -0000 @@ -25,6 +25,18 @@ # but to verify the correct output response to MI operations. # +if [target_info exists use_gdb_stub] { + + # When debugging a stub, we can't depend on the current file + # being the default file set by select_source_symtab. + # When the gdb host connects to the stub, the stub will already be + # running the target program stopped at a function + # that probably isn't the one with main. + + verbose "Skipping mi-file.exp." + continue +} + load_lib mi-support.exp set MIFLAGS "-i=mi2"