This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] testsuite: MI: racy results in async mode (PR testsuite/12649)
- From: Doug Evans <dje at google dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Marek Polacek <mpolacek at redhat dot com>
- Date: Tue, 1 Nov 2011 08:40:02 -0700
- Subject: Re: [patch] testsuite: MI: racy results in async mode (PR testsuite/12649)
- References: <20111027101544.GA5288@host1.jankratochvil.net>
On Thu, Oct 27, 2011 at 3:15 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> Hi,
>
> I was looking at some systematic-like regression but it was just a race again.
>
> The fix is ugly but it cannot be done better before there is a generic MI
> client parser deployed for the testsuite.
What does "generic MI client parser" mean in this context?
> $prompt_re is "" in this case, therefore the =breakpoint-deleted async
> notification is randomly left or swallowed by the end of regex in
> mi_expect_stop:
> ? ? ? ?-re "\\*stopped,${r}${a}${bn}frame=\{addr=\"$hex\",func=\"$func\",args=$args,file=\"$any$file\",fullname=\"${fullname_syntax}$file\",line=\"($line)\"\}$after_stopped,thread-id=\"$decimal\",stopped-threads=$any\r\n($thread_selected_re|$breakpoint_re)*$prompt_re" {
>
> No regressions on {x86_64,x86_64-m32,i686}-fedora16pre-linux-gnu and with
> gdbserver.
>
> I will check it in in some time.