This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] GDB/testsuite: Extend the time gdbserver is waited for
- From: Pedro Alves <palves at redhat dot com>
- To: "Maciej W. Rozycki" <macro at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Tue, 29 Jul 2014 13:53:36 +0100
- Subject: Re: [PATCH] GDB/testsuite: Extend the time gdbserver is waited for
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 1 dot 10 dot 1407282028050 dot 16254 at tp dot orcam dot me dot uk>
On 07/28/2014 08:34 PM, Maciej W. Rozycki wrote:
> gdb-test-gdbserver-start-timeout.diff
> Index: gdb-fsf-trunk-quilt/gdb/testsuite/lib/gdbserver-support.exp
> ===================================================================
> --- gdb-fsf-trunk-quilt.orig/gdb/testsuite/lib/gdbserver-support.exp 2014-05-13 02:52:11.347706187 +0100
> +++ gdb-fsf-trunk-quilt/gdb/testsuite/lib/gdbserver-support.exp 2014-05-30 01:45:51.658977074 +0100
> @@ -275,6 +275,7 @@ proc gdbserver_start { options arguments
> # Wait for the server to open its TCP socket, so that GDB can connect.
> expect {
> -i $server_spawn_id
> + -timeout 120
> -notransfer
> -re "Listening on" { }
> -re "Can't bind address: Address already in use\\.\r\n" {
>
OK.
Wouldn't it be good to add a 'timeout {...}' case that emits a
warning or some such?
Thanks,
Pedro Alves