This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Fix SID vs MI bitrot
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] Fix SID vs MI bitrot
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sat, 18 Aug 2001 17:28:25 -0400
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 ----