This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/8] record: notify about "record goto" stop
- From: Markus Metzger <markus dot t dot metzger at intel dot com>
- To: gdb-patches at sourceware dot org
- Cc: palves at redhat dot com, marc dot khouzam at ericsson dot com
- Date: Wed, 6 Jul 2016 13:56:23 +0200
- Subject: [PATCH 0/8] record: notify about "record goto" stop
- Authentication-results: sourceware.org; auth=none
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