* config/sim.exp (gdb_load): Return 0 on success, -1 on failure.
authorRichard Earnshaw <richard.earnshaw@arm.com>
Sun, 28 Nov 2004 23:17:33 +0000 (23:17 +0000)
committerRichard Earnshaw <richard.earnshaw@arm.com>
Sun, 28 Nov 2004 23:17:33 +0000 (23:17 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/config/sim.exp

index c2e89d222a1857b35dddf7516196ec10f509fa03..156d72e78b65a38ce9adb1a57f37583d639d393e 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-28  Richard Earnshaw  <rearnsha@arm.com>
+
+       * config/sim.exp (gdb_load): Return 0 on success, -1 on failure.
+
 2004-11-16  Randolph Chung  <tausq@debian.org>
 
        * gdb.base/unload.exp: Pass relative path to gdb_get_line_number.
index 6ecdc522bf26b1d14cb670a0bd24c16e19ea9391..e7d7c141f5e7f95d12b4f4489d71706ace2ec957 100644 (file)
@@ -71,7 +71,7 @@ proc gdb_load { arg } {
            }
            set timeout 30
            verbose "Timeout is now $timeout seconds" 2
-           return 1
+           return 0
        }
        -re "$gdb_prompt $"     {
            if $verbose>1 then {
@@ -84,4 +84,5 @@ proc gdb_load { arg } {
            }
        }
     }
+    return -1
 }