This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/8] record: notify about "record goto" stop

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:

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]