This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v5 6/9] python: Create Python bindings for record history.
- From: Doug Evans <xdje42 at gmail dot com>
- To: Tim Wiederhake <tim dot wiederhake at intel dot com>
- Cc: gdb-patches at sourceware dot org, markus dot t dot metzger at intel dot com, palves at redhat dot com
- Date: Sun, 12 Feb 2017 19:58:55 -0800
- Subject: Re: [PATCH v5 6/9] python: Create Python bindings for record history.
- Authentication-results: sourceware.org; auth=none
- References: <1485527996-32506-1-git-send-email-tim.wiederhake@intel.com> <1485527996-32506-7-git-send-email-tim.wiederhake@intel.com>
Tim Wiederhake <tim.wiederhake@intel.com> writes:
> This patch adds three new functions to the gdb module in Python:
> - start_recording
> - stop_recording
> - current_recording
> start_recording and current_recording return an object of the new type
> gdb.Record, which can be used to access the recorded data.
>
> 2017-01-27 Tim Wiederhake <tim.wiederhake@intel.com>
>
> gdb/ChangeLog
>
> * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
> (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
> * python/py-record.c: New file.
> * python/python-internal.h (gdbpy_start_recording,
> gdbpy_current_recording, gdpy_stop_recording,
> gdbpy_initialize_record): New export.
> * python/python.c (_initialize_python): Add gdbpy_initialize_record.
> (python_GdbMethods): Add gdbpy_start_recording,
> gdbpy_current_recording and gdbpy_stop_recording.
LGTM