When GDB doesn't recognize the -i=mi option, assume there is no MI support.
authorAndrew Cagney <cagney@redhat.com>
Sat, 4 Mar 2000 03:01:38 +0000 (03:01 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 4 Mar 2000 03:01:38 +0000 (03:01 +0000)
gdb/testsuite/gdb.mi/ChangeLog-mi
gdb/testsuite/lib/mi-support.exp

index 9d4f1ce216107e63467cad441e610161e370b764..4cff05d40ec8d6080e849e71ce3cd99a13f304c8 100644 (file)
@@ -1,3 +1,9 @@
+Sat Mar  4 13:55:08 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       From Fri 3 Mar 2000 Peter Schauer:
+       * mi-support.exp (mi_gdb_start): When GDB doesn't recongize -i=mi
+       option, assume no MI support present.
+
 2000-02-01  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
 
        * mi-support.exp (mi_gdb_start): Update to recognize start up
index 7d207df08a1750e20016c4b80013eb4a80396910..1cad1b12977d6562cb1a3740e068c04dceb39bde 100644 (file)
@@ -130,6 +130,11 @@ proc mi_gdb_start { } {
            remote_close host;
            return -1;
        }
+       -re ".*unrecognized option.*for a complete list of options." {
+           untested "Skip mi tests (not compiled with mi support)."
+           remote_close host;
+           return -1;
+       }
        timeout {
            perror "(timeout) GDB never initialized after 10 seconds."
            remote_close host;