This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Fix SID vs MI bitrot


Hello,

The attatched patch fixes some bit-rot with GDB's MI tested against a 
SID target.  This happened because the MI testsuite was disabled so no 
one was noticing that sid.exp updates were breaking it :-/

	Andrew
2001-08-18  Andrew Cagney  <ac131313@redhat.com>

	* lib/mi-support.exp (mi_gdb_start): Move call to sid_start to
	beginning of function.

Index: lib/mi-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v
retrieving revision 1.8
diff -p -r1.8 mi-support.exp
*** mi-support.exp	2001/06/27 17:27:08	1.8
--- mi-support.exp	2001/08/18 21:20:36
*************** proc mi_gdb_start { } {
*** 99,104 ****
--- 99,110 ----
  
      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] {
*************** proc mi_gdb_start { } {
*** 168,179 ****
  	timeout {
  	    warning "Couldn't set the width to 0."
  	}
-     }
- 
-     # Finally start SID.
-     if { [info procs sid_start] != "" } {
- 	verbose "Spawning SID"
- 	sid_start
      }
  
      return 0;
--- 174,179 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]