|
|
689258 |
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
|
689258 |
From: Sergio Durigan Junior <sergiodj@redhat.com>
|
|
|
689258 |
Date: Mon, 30 Jul 2018 15:23:27 -0400
|
|
|
689258 |
Subject: gdb-rhbz881849-ipv6-2of3.patch
|
|
|
689258 |
|
|
|
689258 |
Match any kind of error after "cannot resolve name" on lib/gdbserver-support.exp:gdbserver_start
|
|
|
689258 |
|
|
|
689258 |
On commit:
|
|
|
689258 |
|
|
|
689258 |
commit 7f1f7e23939adc7d71036a17fc6081e3af7ca585
|
|
|
689258 |
Author: Sergio Durigan Junior <sergiodj@redhat.com>
|
|
|
689258 |
Date: Fri Jul 13 16:20:34 2018 -0400
|
|
|
689258 |
|
|
|
689258 |
Expect for another variant of error message when gdbserver cannot resolve hostname
|
|
|
689258 |
|
|
|
689258 |
I extended the regular expression being used to identify whether
|
|
|
689258 |
gdbserver could not resolve a (host)name. This was needed because the
|
|
|
689258 |
error message being printed had a different variation across some
|
|
|
689258 |
systems. However, as it turns out, I've just noticed that the message
|
|
|
689258 |
has yet another variation:
|
|
|
689258 |
|
|
|
689258 |
target remote tcp8:123:2353
|
|
|
689258 |
tcp8:123:2353: cannot resolve name: System error
|
|
|
689258 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
689258 |
tcp8:123:2353: No such file or directory.
|
|
|
689258 |
(gdb) FAIL: gdb.server/server-connect.exp: tcp8: connect to gdbserver using tcp8:123
|
|
|
689258 |
|
|
|
689258 |
which is causing FAILs on some systems (namely, Fedora-i686 on
|
|
|
689258 |
BuildBot).
|
|
|
689258 |
|
|
|
689258 |
So instead of trying to predict everything that can be printed, I
|
|
|
689258 |
decided to just match anything after the "cannot resolve name: " part.
|
|
|
689258 |
This patch implements that.
|
|
|
689258 |
|
|
|
689258 |
Regression tested on the BuildBot.
|
|
|
689258 |
|
|
|
689258 |
gdb/testsuite/ChangeLog:
|
|
|
689258 |
2018-07-30 Sergio Durigan Junior <sergiodj@redhat.com>
|
|
|
689258 |
|
|
|
689258 |
* lib/gdbserver-support.exp (gdbserver_start): Match any kind of
|
|
|
689258 |
error after "cannot resolve name" string.
|
|
|
689258 |
|
|
|
689258 |
diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp
|
|
|
689258 |
--- a/gdb/testsuite/lib/gdbserver-support.exp
|
|
|
689258 |
+++ b/gdb/testsuite/lib/gdbserver-support.exp
|
|
|
689258 |
@@ -326,7 +326,7 @@ proc gdbserver_start { options arguments } {
|
|
|
689258 |
continue
|
|
|
689258 |
}
|
|
|
689258 |
}
|
|
|
689258 |
- -re ".*: cannot resolve name: Name or service not known\r\n" {
|
|
|
689258 |
+ -re ".*: cannot resolve name: .*\r\n" {
|
|
|
689258 |
error "gdbserver cannot resolve name."
|
|
|
689258 |
}
|
|
|
689258 |
timeout {
|