This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] testsuite/config/sim.exp:gdb_load fix return values
- From: Richard Earnshaw <Richard dot Earnshaw at buzzard dot freeserve dot co dot uk>
- To: gdb-patches at sources dot redhat dot com
- Cc: Richard dot Earnshaw at buzzard dot freeserve dot co dot uk, Michael Chastain <mec dot gnu at mindspring dot com>
- Date: Sat, 27 Nov 2004 13:03:02 +0000
- Subject: [PATCH] testsuite/config/sim.exp:gdb_load fix return values
This patch fixes the return values of the gdb_load implementation in
sim.exp. With this patch the testsuite is begining to look somewhat more
sane again for an arm-elf cross.
OK?
* config/sim.exp (gdb_load): Return 0 on success, -1 on failure.
R.
Index: sim.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/config/sim.exp,v
retrieving revision 1.2
diff -p -p -r1.2 sim.exp
*** sim.exp 8 Feb 2004 03:56:14 -0000 1.2
--- sim.exp 27 Nov 2004 12:59:44 -0000
*************** proc gdb_load { arg } {
*** 71,77 ****
}
set timeout 30
verbose "Timeout is now $timeout seconds" 2
! return 1
}
-re "$gdb_prompt $" {
if $verbose>1 then {
--- 71,77 ----
}
set timeout 30
verbose "Timeout is now $timeout seconds" 2
! return 0
}
-re "$gdb_prompt $" {
if $verbose>1 then {
*************** proc gdb_load { arg } {
*** 84,87 ****
--- 84,88 ----
}
}
}
+ return -1
}