public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/8] record: notify about "record goto" stop
@ 2016-07-06 11:56 Markus Metzger
  2016-07-06 11:56 ` [PATCH 2/8] record: do not allow record goto on a running thread Markus Metzger
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Markus Metzger @ 2016-07-06 11:56 UTC (permalink / raw)
  To: gdb-patches; +Cc: palves, marc.khouzam

The "record goto" command moves the selected thread in the recorded execution
history.  It does not send a stopped notification so the move is not visible to
MI consumers.

For the record-btrace target, the "record stop" command moves all replaying
threads to the end of their respective execution history.  It again does not
send a stopped notification so the move goes unnoticed.

The issue has been reported and discussed here:
https://sourceware.org/ml/gdb/2016-06/msg00005.html.

This series attempts to fix it.  See also branch users/mmetzger/record-goto-mi.

Markus Metzger (8):
  btrace: check if we're replaying when setting the replay position to
    the end
  record: do not allow record goto on a running thread
  infrun: export clear_proceed_status_thread
  record: signal a record goto stop to front-ends
  mi, testsuite: add another EXTRA option to mi_expect_stop
  record-full: signal record-goto stop
  btrace-btrace: signal record-goto stop
  btrace: record stop moves to the end of the trace

 gdb/infrun.c                             |  5 +--
 gdb/infrun.h                             |  3 ++
 gdb/record-btrace.c                      | 74 +++++++++++++++++++++++++++++---
 gdb/record-full.c                        |  2 +-
 gdb/record.c                             | 35 +++++++++++++++
 gdb/record.h                             |  3 ++
 gdb/testsuite/gdb.btrace/non-stop.c      |  6 ++-
 gdb/testsuite/gdb.btrace/non-stop.exp    | 19 +++++++-
 gdb/testsuite/gdb.btrace/record_goto.exp |  3 ++
 gdb/testsuite/gdb.btrace/stop.exp        | 70 ++++++++++++++++++++++++++++++
 gdb/testsuite/gdb.mi/mi-reverse.exp      |  9 ++++
 gdb/testsuite/lib/mi-support.exp         | 26 +++++++----
 12 files changed, 233 insertions(+), 22 deletions(-)
 create mode 100644 gdb/testsuite/gdb.btrace/stop.exp

-- 
1.8.3.1

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

end of thread, other threads:[~2016-07-06 11:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-06 11:56 [PATCH 0/8] record: notify about "record goto" stop Markus Metzger
2016-07-06 11:56 ` [PATCH 2/8] record: do not allow record goto on a running thread Markus Metzger
2016-07-06 11:56 ` [PATCH 4/8] record: signal a record goto stop to front-ends Markus Metzger
2016-07-06 11:57 ` [PATCH 1/8] btrace: check if we're replaying when setting the replay position to the end Markus Metzger
2016-07-06 11:57 ` [PATCH 5/8] mi, testsuite: add another EXTRA option to mi_expect_stop Markus Metzger
2016-07-06 11:57 ` [PATCH 3/8] infrun: export clear_proceed_status_thread Markus Metzger
2016-07-06 11:57 ` [PATCH 7/8] btrace-btrace: signal record-goto stop Markus Metzger
2016-07-06 11:57 ` [PATCH 8/8] btrace: record stop moves to the end of the trace Markus Metzger
2016-07-06 11:57 ` [PATCH 6/8] record-full: signal record-goto stop Markus Metzger

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