[PATCH] Use Python 2.[67] / 3.X / PEP 3118 buffer protocol

Kevin Buettner kevinb@redhat.com
Wed Feb 27 18:17:00 GMT 2019


On Tue, 19 Feb 2019 14:51:10 -0700
Kevin Buettner <kevinb@redhat.com> wrote:

> gdb/ChangeLog:
> 
> 	* python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
> 	code from these functions.  Remove corresponding ifdefs.  Use
> 	Py_buffer_up instead of explicit calls to PyBuffer_Release.
> 	Remove gotos and target of gotos.
> 	(infpy_search_memory): Likewise.

Pushed.

Kevin



More information about the Gdb-patches mailing list