Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Guinevere Larsen <blarsen@redhat.com>
To: Tom de Vries <tdevries@suse.de>,
	Alex Chronopoulos <achronop@gmail.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH v6] Change message when reaching end of reverse history.
Date: Tue, 27 Aug 2024 08:07:50 -0300	[thread overview]
Message-ID: <20100e5c-74dc-4a09-be7d-1bf94809c3bd@redhat.com> (raw)
In-Reply-To: <07bf3284-cdd7-4349-8e42-6d22931b3299@suse.de>

On 8/27/24 7:17 AM, Tom de Vries wrote:
> On 8/26/24 15:41, Guinevere Larsen wrote:
>> Pushed :)
>
> Hi Gwen,
>
> After this patch got pushed, I ran into:
> ...
> (gdb) PASS: gdb.btrace/non-stop.exp: no progress: all: thread apply 
> all continue: prompt
> ^M
> Reached end of recorded history; stopping.^M
> Following forward execution will be added to history.^M
> test (arg=0x0) at 
> /data/vries/gdb/src/gdb/testsuite/gdb.btrace/non-stop.c:30^M
> 30        return arg; /* bp.2 */^M
> ^M
> Reached end of recorded history; stopping.^M
> Following forward execution will be added to history.^M
> test (arg=0x0) at 
> /data/vries/gdb/src/gdb/testsuite/gdb.btrace/non-stop.c:30^M
> 30        return arg; /* bp.2 */^M
> PASS: gdb.btrace/non-stop.exp: no progress: all: thread apply all 
> continue: thread 0
> FAIL: gdb.btrace/non-stop.exp: no progress: all: thread apply all 
> continue: thread 1 (timeout)
> ...
>
> I suppose the test-case needs to be updated.

The test case is updated. I think the regexes need to be fixed instead. 
Right now, the test uses:

multi_line "reached end of recorded.*Following forward.*" 
"\[^\\\r\\\n\]*" "\[^\\\r\\\n\]*"

the '.*' in the first line must be consuming all of the first output 
(thread 0) and the next bits are finishing consuming the second input 
(thread 1), so when expect tries to find the second stop message, it has 
already been consumed.

I'll try to write a more exact version that doesn't do that, but my 
machine doesn't support btrace so I'll need someone to double check me.

-- 
Cheers,
Guinevere Larsen
She/Her/Hers

>
> Thanks,
> - Tom
>


      reply	other threads:[~2024-08-27 11:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-02 16:43 Alex Chronopoulos
2024-08-12 19:50 ` Guinevere Larsen
2024-08-13  8:52   ` Metzger, Markus T
2024-08-13 11:55     ` Guinevere Larsen
2024-08-13 18:18       ` Alex Chronopoulos
2024-08-13 18:26         ` Guinevere Larsen
2024-08-23 12:25           ` Alex Chronopoulos
2024-08-26 13:41             ` Guinevere Larsen
2024-08-27 10:17               ` Tom de Vries
2024-08-27 11:07                 ` Guinevere Larsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100e5c-74dc-4a09-be7d-1bf94809c3bd@redhat.com \
    --to=blarsen@redhat.com \
    --cc=achronop@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tdevries@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox