aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2008-01-29 19:36:58 +0000
committerJim Blandy <jimb@codesourcery.com>2008-01-29 19:36:58 +0000
commit401ea829c8166bb5a1f18ec2a164e8ee4b244fc8 (patch)
treea0b8107a9f9331babeb67edb8e2c41e13b26abba /gdb/testsuite/lib
parentaceaf3add3eb92dbcf2cb0b268baf1940aab6205 (diff)
downloadgdb-401ea829c8166bb5a1f18ec2a164e8ee4b244fc8.zip
gdb-401ea829c8166bb5a1f18ec2a164e8ee4b244fc8.tar.gz
gdb-401ea829c8166bb5a1f18ec2a164e8ee4b244fc8.tar.bz2
* lib/gdbserver-support.exp (gdb_target_cmd): Recognize 'unknown
host' errors. * lib/mi-support.exp (mi_gdb_target_cmd): Same.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdbserver-support.exp3
-rw-r--r--gdb/testsuite/lib/mi-support.exp3
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp
index 406a3cc..50dafe0 100644
--- a/gdb/testsuite/lib/gdbserver-support.exp
+++ b/gdb/testsuite/lib/gdbserver-support.exp
@@ -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"
}
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index 0d33221..a67b0cc 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -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";
}