From 23b23974c756a3f1febd4261a0a3e0e044671446 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 29 Feb 2004 16:51:48 +0000 Subject: [PATCH] * config/gdbserver.exp (gdbserver_gdb_load): Wait for a complete line of output. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/config/gdbserver.exp | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d23e034cf96..aee188b075a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-02-29 Daniel Jacobowitz + + * config/gdbserver.exp (gdbserver_gdb_load): Wait for a complete + line of output. + 2004-02-28 Daniel Jacobowitz * gdb.base/relocate.c (dummy): Initialize. diff --git a/gdb/testsuite/config/gdbserver.exp b/gdb/testsuite/config/gdbserver.exp index bb5b246a050..ed812f81aa4 100644 --- a/gdb/testsuite/config/gdbserver.exp +++ b/gdb/testsuite/config/gdbserver.exp @@ -144,11 +144,13 @@ proc gdbserver_gdb_load { server_exec } { "$gdbserver $sockethost$portnum $server_exec"] } - # Wait for the server to produce at least one character of output. + # Wait for the server to produce at least one line and an additional + # character of output. This will wait until any TCP socket has been + # created, so that GDB can connect. expect { -i $server_spawn_id -notransfer - -re . { } + -re ".*\n." { } } # We can't just call close, because if gdbserver is local then that means -- 2.30.2