* lib/gdbserver-support.exp (gdb_target_cmd): Recognize 'unknown

host' errors.
* lib/mi-support.exp (mi_gdb_target_cmd): Same.
This commit is contained in:
Jim Blandy 2008-01-29 19:36:58 +00:00
parent aceaf3add3
commit 401ea829c8
3 changed files with 12 additions and 0 deletions

View 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

View 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"
}

View 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";
}