This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: For review: call-ar-st.exp: don't fail on slow targets
- To: Jimmy Guo <guo@cup.hp.com>
- Subject: Re: For review: call-ar-st.exp: don't fail on slow targets
- From: Andrew Cagney <ac131313@cygnus.com>
- Date: Fri, 25 Jun 1999 19:19:14 +1000
- CC: gdb@sourceware.cygnus.com
- Organization: Cygnus Solutions
- References: <Pine.LNX.4.10.9906242006020.3461-100000@hpcll168.cup.hp.com>
Jimmy Guo wrote:
>
> Andrew,
>
> The problem you encountered with fast responses seems to be related to
> what I'd call the improper use of gdb_expect_list proc -- the proc is
> fine, but one of the patterns in the pattern list needs to be adjusted
> to work with expect.
>
> In your original change, in the 2nd pattern, you need to remove the
> trailing \[ \t\r\n\]+ RE. Otherwise, on a fast system expect will see
> all the blanks / newlines leading to 0.000000 (part of the the 3rd
> pattern), and consume these. When expect tries to match the 3rd
> pattern, there's no leading blanks / newlines to match against!
Thanks! (now where did I put my L plates).
Fixing that and a few other cases left what looks to be a few real
failures.
I'll check it in.
Andrew