aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-12-14 19:50:18 +0000
committerDoug Evans <dje@google.com>2011-12-14 19:50:18 +0000
commit31015e1de02e4367a8ef1f25fcb3ca518d13a0c7 (patch)
tree14493159eb9d00557a14054f5a57ce599400af18 /gdb/testsuite
parent8d5b6c2b0ad7a2489fe33995b4f800f1c919543b (diff)
downloadgdb-31015e1de02e4367a8ef1f25fcb3ca518d13a0c7.zip
gdb-31015e1de02e4367a8ef1f25fcb3ca518d13a0c7.tar.gz
gdb-31015e1de02e4367a8ef1f25fcb3ca518d13a0c7.tar.bz2
* lib/gdb.exp (gdb_start_cmd): Fix error return value.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/lib/gdb.exp2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b2cc4bb..9ce9c02 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2011-12-14 Doug Evans <dje@google.com>
+
+ * lib/gdb.exp (gdb_start_cmd): Fix error return value.
+
2011-12-14 Pedro Alves <pedro@codesourcery.com>
PR threads/10729
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 633dc26..fc7e223 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -307,7 +307,7 @@ proc gdb_start_cmd {args} {
-re "$gdb_prompt $" { }
default {
perror "gdb_init_command for target failed";
- return;
+ return -1;
}
}
}