[PATCH v2 0/2] thread, btrace: allow "record btrace" for running threads

Markus Metzger
2017-01-20T14:39:12Z

This refers to: https://sourceware.org/ml/gdb-patches/2016-11/msg00994.html.

The first version tried to detect the error in gdbserver, propagate it back, and
handle it in btrace.

This version checks whether registers can be accessed before making the request
to gdbserver based on feedback from Pedro.

Markus Metzger (2):
thread: add can_access_registers_ptid
btrace: allow recording to be started for running threads

gdb/btrace.c | 44 ++++++++++++++++--
gdb/gdbthread.h | 4 ++
gdb/testsuite/gdb.btrace/enable-running.c | 47 +++++++++++++++++++
gdb/testsuite/gdb.btrace/enable-running.exp | 72 +++++++++++++++++++++++++++++
gdb/thread.c | 20 ++++++++
5 files changed, 183 insertions(+), 4 deletions(-)
create mode 100644 gdb/testsuite/gdb.btrace/enable-running.c
create mode 100644 gdb/testsuite/gdb.btrace/enable-running.exp

--
1.8.3.1