This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 0/2] thread, btrace: allow "record btrace" for running threads
- 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
- Date: Fri, 20 Jan 2017 15:38:53 +0100
- Subject: [PATCH v2 0/2] thread, btrace: allow "record btrace" for running threads
- Authentication-results: sourceware.org; auth=none
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