* lib/gdb.exp (gdb_start_cmd): Fix error return value.
authorDoug Evans <dje@google.com>
Wed, 14 Dec 2011 19:50:18 +0000 (19:50 +0000)
committerDoug Evans <dje@google.com>
Wed, 14 Dec 2011 19:50:18 +0000 (19:50 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index b2cc4bb72fa9cbab425a42056fc14692a20b3ea4..9ce9c0255bfafa51176ea76ddca78aee0fe9e140 100644 (file)
@@ -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
index 633dc267e7834027150e89c09feadb0176e1339a..fc7e223ed87c25a7e262efcb465a53e542682dee 100644 (file)
@@ -307,7 +307,7 @@ proc gdb_start_cmd {args} {
            -re "$gdb_prompt $" { }
            default {
                perror "gdb_init_command for target failed";
-               return;
+               return -1;
            }
        }
     }