From 401ea829c8166bb5a1f18ec2a164e8ee4b244fc8 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 29 Jan 2008 19:36:58 +0000 Subject: [PATCH] * lib/gdbserver-support.exp (gdb_target_cmd): Recognize 'unknown host' errors. * lib/mi-support.exp (mi_gdb_target_cmd): Same. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/lib/gdbserver-support.exp | 3 +++ gdb/testsuite/lib/mi-support.exp | 3 +++ 3 files changed, 12 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 55e0bc86607..b0ddbca0a43 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-01-29 Jim Blandy + + * 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 * gdb.threads/sigthread.c: Use barriers to ensure that diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp index 406a3ccc4bc..50dafe01937 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 0d3322123ee..a67b0cc8a8c 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"; } -- 2.30.2