binutils-gdb/gdb/python
Tim Wiederhake 4726b2d82c python: Create Python bindings for record history.
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.

Signed-off-by: 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.

Change-Id: I772aa9aa068621443f10a330b11dc7dc9a63face
2017-02-14 10:57:56 +01:00
..
lib/gdb update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-arch.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-auto-load.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-block.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-bpevent.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-breakpoint.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-cmd.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-continueevent.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-event.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-event.h Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-events.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-evtregistry.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-evts.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-exitedevent.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-finishbreakpoint.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-frame.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-framefilter.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-function.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-gdb-readline.c Fix python-interactive with Python 3.6 2017-01-20 20:39:08 -05:00
py-inferior.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-infevents.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-infthread.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-lazy-string.c Change type of encoding argument to gdbpy_extract_lazy_string 2017-01-10 19:13:55 -07:00
py-linetable.c Remove some gotos from Python 2017-02-10 12:24:34 -07:00
py-newobjfileevent.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-objfile.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-param.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-prettyprint.c Change one more spot to use gdbpy_ref 2017-02-10 12:24:33 -07:00
py-progspace.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-record.c python: Create Python bindings for record history. 2017-02-14 10:57:56 +01:00
py-ref.h Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-signalevent.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-stopevent.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-stopevent.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-symbol.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-symtab.c Use gdbpy_ref to simplify some logic 2017-02-10 12:24:32 -07:00
py-threadevent.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-type.c Remove unnecessary local variables 2017-02-10 12:24:34 -07:00
py-unwind.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-utils.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-value.c Remove unnecessary local variables 2017-02-10 12:24:34 -07:00
py-varobj.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
py-xmethods.c Turn gdbpy_ref into a template 2017-02-10 12:24:31 -07:00
python-config.py
python-internal.h python: Create Python bindings for record history. 2017-02-14 10:57:56 +01:00
python.c python: Create Python bindings for record history. 2017-02-14 10:57:56 +01:00
python.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00