* lib/mi-support.exp (mi_gdb_start): Move call to sid_start to
authorAndrew Cagney <cagney@redhat.com>
Sat, 18 Aug 2001 21:34:28 +0000 (21:34 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 18 Aug 2001 21:34:28 +0000 (21:34 +0000)
beginning of function.  Fix PR gdb/191.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/mi-support.exp

index ba58af6d589beec885482cd484af3754bf411bb8..bf7e12beb6a144acbf153301d380cf25685863d2 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-18  Andrew Cagney  <ac131313@redhat.com>
+
+       * lib/mi-support.exp (mi_gdb_start): Move call to sid_start to
+       beginning of function.  Fix PR gdb/191.
+
 2001-08-16  Frank Ch. Eigler  <fche@redhat.com>
 
        * config/sid.exp (sid_start): Don't warn if we cannot figure out
index 2f48ebef1b16ffbcdce6957752838d23e0ef620c..b3c01ec6dbebf2d0ee4ae8676f80e084f3396e48 100644 (file)
@@ -99,6 +99,12 @@ proc mi_gdb_start { } {
 
     gdb_stop_suppressing_tests;
 
+    # Start SID.
+    if { [info procs sid_start] != "" } {
+       verbose "Spawning SID"
+       sid_start
+    }
+
     verbose "Spawning $GDB -nw $GDBFLAGS $MIFLAGS"
 
     if [info exists gdb_spawn_id] {
@@ -170,12 +176,6 @@ proc mi_gdb_start { } {
        }
     }
 
-    # Finally start SID.
-    if { [info procs sid_start] != "" } {
-       verbose "Spawning SID"
-       sid_start
-    }
-
     return 0;
 }