public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] pr gdb/19340
@ 2024-03-07 13:28 Markus Metzger
  2024-03-07 13:28 ` [PATCH 1/6] gdb, btrace: fix pr19340 Markus Metzger
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Markus Metzger @ 2024-03-07 13:28 UTC (permalink / raw)
  To: gdb-patches

Fix PR gdb/19340 by stopping replaying the current thread before disabling
recording.

While writing the test for this, I wondered whether it would also work if
there was more than one process and if some were recording while others
were replaying.

It turned out that recording one process while some other process is
replaying doesn't work.  You first have to stop replaying everything
before you can continue recording.  Since btrace is per inferior, this
seems like an unnecessary restriction.

The first patch fixes gdb/pr19340; the rest makes recording work together
with replaying on inferior level.

Markus Metzger (6):
  gdb, btrace: fix pr19340
  gdb, btrace: simplify gdb.btrace/multi-inferior.exp
  gdb, btrace: remove record_btrace_target::supports_*()
  gdb, btrace: set wait status to ignore if nothing is moving
  gdb, infrun: wait for single inferior
  gdb, btrace, infrun: per-inferior run-control

 gdb/infrun.c                                | 39 ++++++++---
 gdb/linux-nat.c                             | 16 +++--
 gdb/record-btrace.c                         | 78 +++++++--------------
 gdb/testsuite/gdb.btrace/multi-inferior.c   | 10 ++-
 gdb/testsuite/gdb.btrace/multi-inferior.exp | 33 ++++-----
 gdb/testsuite/gdb.btrace/step.exp           | 22 ++++--
 6 files changed, 110 insertions(+), 88 deletions(-)

-- 
2.34.1

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-03-11 13:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-07 13:28 [PATCH 0/6] pr gdb/19340 Markus Metzger
2024-03-07 13:28 ` [PATCH 1/6] gdb, btrace: fix pr19340 Markus Metzger
2024-03-07 13:28 ` [PATCH 2/6] gdb, btrace: simplify gdb.btrace/multi-inferior.exp Markus Metzger
2024-03-07 13:28 ` [PATCH 3/6] gdb, btrace: remove record_btrace_target::supports_*() Markus Metzger
2024-03-07 13:28 ` [PATCH 4/6] gdb, btrace: set wait status to ignore if nothing is moving Markus Metzger
2024-03-07 13:28 ` [PATCH 5/6] gdb, infrun: wait for single inferior Markus Metzger
2024-03-07 13:28 ` [PATCH 6/6] gdb, btrace, infrun: per-inferior run-control Markus Metzger
2024-03-08 10:50   ` Guinevere Larsen
2024-03-08 10:57     ` Metzger, Markus T
2024-03-08 11:02       ` Guinevere Larsen
2024-03-08 11:11         ` Metzger, Markus T
2024-03-08 11:25           ` Guinevere Larsen
2024-03-11 13:51             ` Metzger, Markus T

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).