From: Hannes Domani <ssbssa@yahoo.de>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
Markus Metzger <markus.t.metzger@intel.com>
Subject: Re: [PATCH v4 1/4] gdb, infrun, btrace: fix reverse/replay stepping at end of execution history
Date: Tue, 12 Mar 2024 11:56:07 +0000 (UTC) [thread overview]
Message-ID: <257133230.5318577.1710244567184@mail.yahoo.com> (raw)
In-Reply-To: <20240312113423.3543956-2-markus.t.metzger@intel.com>
Am Dienstag, 12. März 2024 um 12:35:10 MEZ hat Markus Metzger <markus.t.metzger@intel.com> Folgendes geschrieben:
> When trying to step over a breakpoint at the end of the trace, the
> step-over will fail with no-history. This does not clear step_over_info
> so a subsequent resume will cause GDB to not resume the thread and expect
> a SIGTRAP to complete the step-over. This will never come causing GDB to
> hang in the wait-for-event poll.
>
> That step-over failed after actually completing the step. This is wrong.
> The step-over itself should have failed and the step should not have
> completed. Fix it by moving the end of execution history check to before
> we are stepping.
>
> This exposes another issue, however. When completing a step-over at the
> end of the execution history, we implicitly stop replaying that thread. A
> continue command would resume after the step-over and, since we're no
> longer replaying, would continue recording.
>
> Fix that by recording the replay state in the thread's control state and
> failing with no-history in keep_going if we're switching from replay to
> recording.
That sounds a lot like https://sourceware.org/bugzilla/show_bug.cgi?id=31353.
Hannes
next prev parent reply other threads:[~2024-03-12 11:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 11:34 [PATCH v4 0/4] btrace: infrun fixes Markus Metzger
2024-03-12 11:34 ` [PATCH v4 1/4] gdb, infrun, btrace: fix reverse/replay stepping at end of execution history Markus Metzger
2024-03-12 11:56 ` Hannes Domani [this message]
2024-03-13 11:47 ` Hannes Domani
2024-04-04 18:03 ` Guinevere Larsen
2024-04-05 9:12 ` Metzger, Markus T
2024-04-05 12:53 ` Guinevere Larsen
2024-03-12 11:34 ` [PATCH v4 2/4] gdb, infrun, record: fix hang when step-over fails with no-history Markus Metzger
2024-04-04 18:27 ` Guinevere Larsen
2024-03-12 11:34 ` [PATCH v4 3/4] gdb, infrun, record: move no-history notification into normal_stop Markus Metzger
2024-04-04 18:57 ` Guinevere Larsen
2024-04-05 9:16 ` Metzger, Markus T
2024-04-05 15:51 ` Guinevere Larsen
2024-03-12 11:34 ` [PATCH v4 4/4] gdb, infrun: fix multi-threaded reverse stepping Markus Metzger
2024-04-03 20:27 ` Guinevere Larsen
2024-04-09 9:14 ` Metzger, Markus T
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=257133230.5318577.1710244567184@mail.yahoo.com \
--to=ssbssa@yahoo.de \
--cc=gdb-patches@sourceware.org \
--cc=markus.t.metzger@intel.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).