From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22451 invoked by alias); 12 Oct 2010 18:37:27 -0000 Received: (qmail 22441 invoked by uid 22791); 12 Oct 2010 18:37:26 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.17.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Oct 2010 18:37:22 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.1/8.13.1) with ESMTP id o9CIbIMd013641 for ; Tue, 12 Oct 2010 18:37:18 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9CIbIhO4042772 for ; Tue, 12 Oct 2010 20:37:18 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o9CIbIaY004525 for ; Tue, 12 Oct 2010 20:37:18 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id o9CIbHSN004504; Tue, 12 Oct 2010 20:37:17 +0200 Message-Id: <201010121837.o9CIbHSN004504@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 12 Oct 2010 20:37:17 +0200 Subject: Re: [commit] Fix timeouts in break-interp.exp on slow machines To: jan.kratochvil@redhat.com (Jan Kratochvil) Date: Tue, 12 Oct 2010 18:37:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <20101012182337.GA15377@host1.dyn.jankratochvil.net> from "Jan Kratochvil" at Oct 12, 2010 08:23:37 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00199.txt.bz2 Jan Kratochvil wrote: > On Tue, 12 Oct 2010 19:20:29 +0200, Ulrich Weigand wrote: > > This is once again caused by a gdb_expect clause with a ".*" wildcard that > > matches a large number of lines. This can cause expect to slow down > > significantly, to the extent that the tests time out on slow machines. > > OK, thanks for the fix. I do not have the slowness reproducible here but > I thought gdb_expect is deprecated in the favor of gdb_test_multiple. > > I do not mind but just curious if it could be rather coded this way or it > would be still slow/incompatible by the more patterns of gdb_test_multiple? Ah, I wasn't aware you could use gdb_test_multiple with an empty string to send to GDB! That's even better, of course. > 2010-10-12 Jan Kratochvil > > * gdb.base/break-interp.exp (test_ld): Replace gdb_expect by > gdb_test_multiple. This still works for me (no timeouts) on armv7l-linux-gnueabi. Thanks, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com