This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Fix timeouts in break-interp.exp on slow machines
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: jan dot kratochvil at redhat dot com (Jan Kratochvil)
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 12 Oct 2010 20:37:17 +0200 (CEST)
- Subject: Re: [commit] Fix timeouts in break-interp.exp on slow machines
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 <jan.kratochvil@redhat.com>
>
> * 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