This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 0/8] Python bindings for GDB record
- From: Tim Wiederhake <tim dot wiederhake at intel dot com>
- To: gdb-patches at sourceware dot org
- Cc: markus dot t dot metzger at intel dot com, brobecker at adacore dot com, qiyaoltc at gmail dot com
- Date: Fri, 21 Apr 2017 12:49:38 +0200
- Subject: [PATCH v2 0/8] Python bindings for GDB record
- Authentication-results: sourceware.org; auth=none
Hi all,
This patch series addresses the design issues with the Python bindings for
GDB record, as discussed here:
https://sourceware.org/ml/gdb-patches/2017-04/msg00171.html
V1 of this series can be found here:
https://sourceware.org/ml/gdb-patches/2017-04/msg00424.html
Changes since V1:
* error_string and error_code were renamed to reason_string and reason_code for
gdb.RecordGap.
* Explicitly test retrieving recorded data from a non current thread.
* Moved some error handling code from patch #6 to patch #5.
Documentation was OK'd by Eli,
Patches #1, #4 and #8 were OK'd by Yao.
Please OK this series to go into master and the 8.0 branch.
Regards,
Tim
Tim Wiederhake (8):
Python: Fix indentation in py-record-btrace.c
Python: Fix exception handling in py-record-btrace.c
Python: Use correct ptid in btrace recording
Python: Remove ptid from gdb.Record interface
Python: Introduce gdb.RecordGap class
Python: Move and rename gdb.BtraceInstruction
Python: Move and rename gdb.BtraceFunction
Python: Introduce gdb.Instruction class
gdb/Makefile.in | 2 +
gdb/btrace.c | 8 +-
gdb/doc/python.texi | 108 ++--
gdb/python/py-instruction.c | 67 +++
gdb/python/py-instruction.h | 30 +
gdb/python/py-record-btrace.c | 618 ++++++++-------------
gdb/python/py-record-btrace.h | 42 ++
gdb/python/py-record.c | 424 +++++++++++++-
gdb/python/py-record.h | 74 +++
gdb/python/python-internal.h | 2 +
gdb/python/python.c | 1 +
.../gdb.python/py-record-btrace-threads.c | 58 ++
.../gdb.python/py-record-btrace-threads.exp | 81 +++
gdb/testsuite/gdb.python/py-record-btrace.exp | 6 +-
14 files changed, 1058 insertions(+), 463 deletions(-)
create mode 100644 gdb/python/py-instruction.c
create mode 100644 gdb/python/py-instruction.h
create mode 100644 gdb/python/py-record.h
create mode 100644 gdb/testsuite/gdb.python/py-record-btrace-threads.c
create mode 100644 gdb/testsuite/gdb.python/py-record-btrace-threads.exp
--
2.7.4