This is the mail archive of the gdb-patches@sourceware.org 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 v2 0/2] thread, btrace: allow "record btrace" for running threads


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


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