* lib/gdbserver-support.exp (gdb_target_cmd): Recognize 'unknown
authorJim Blandy <jimb@codesourcery.com>
Tue, 29 Jan 2008 19:36:58 +0000 (19:36 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 29 Jan 2008 19:36:58 +0000 (19:36 +0000)
host' errors.
* lib/mi-support.exp (mi_gdb_target_cmd): Same.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdbserver-support.exp
gdb/testsuite/lib/mi-support.exp

index 55e0bc8660728a1d685756d3ca897feca841056e..b0ddbca0a433c7b8cca2c9504a04fd60f140dca3 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-29  Jim Blandy  <jimb@red-bean.com>
+
+       * lib/gdbserver-support.exp (gdb_target_cmd): Recognize 'unknown
+       host' errors.
+       * lib/mi-support.exp (mi_gdb_target_cmd): Same.
+
 2008-01-29  Jim Blandy  <jimb@red-bean.com>
 
        * gdb.threads/sigthread.c: Use barriers to ensure that
index 406a3ccc4bceb1dc8a85413baea6d81d90f990ca..50dafe01937df937a8523da1305b57e66d3120e3 100644 (file)
@@ -52,6 +52,9 @@ proc gdb_target_cmd { targetname serialport } {
                send_gdb "y\n"
                exp_continue
            }
+           -re "unknown host.*$gdb_prompt" {
+               verbose "Couldn't look up $serialport"
+           }
            -re "Couldn't establish connection to remote.*$gdb_prompt $" {
                verbose "Connection failed"
            }
index 0d3322123ee91d63144b087a466ff48a63f6db16..a67b0cc8a8c33fd5a6dc09514246dde89289e6af 100644 (file)
@@ -332,6 +332,9 @@ proc mi_gdb_target_cmd { targetname serialport } {
                verbose "Set target to $targetname";
                return 0;
            }
+           -re "unknown host.*$mi_gdb_prompt" {
+               verbose "Couldn't look up $serialport"
+           }
            -re "Couldn't establish connection to remote.*$mi_gdb_prompt$" {
                verbose "Connection failed";
            }