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]

Re: [PATCH 8/8] Python: Introduce gdb.Instruction class


Tim Wiederhake <tim.wiederhake@intel.com> writes:

> This adds a generic instruction class to Python and has gdb.RecordInstruction
> inherit from it.
>
> 2017-04-13  Tim Wiederhake  <tim.wiederhake@intel.com>
>
> gdb/ChangeLog:
>
> 	* Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
> 	(SUBDIR_PYTHON_SRCS): Add py-instruction.c.
> 	* python/py-instruction.c, python/py-instruction.h: New file.
> 	* python/py-record.c: Add py-instruction.h include.
> 	(gdbpy_initialize_record): Make gdb.Instruction a super class of
> 	gdb.RecordInstruction.
> 	* python/python-internal.h: Add gdbpy_initialize_instruction
> 	declaration.
> 	* python/python.c (do_start_initialization): Add
> 	gdbpy_initialize_instruction.
>
> gdb/doc/ChangeLog:
> 	* python.texi (Recording in Python): Factor out the documentation of
> 	gdb.RecordInstruction's super class.

Patch is good to me.

-- 
Yao (齐尧)


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