This is the mail archive of the archer@sourceware.org mailing list for the Archer 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: [python] Implement gdb.search_memory.


On Fri, 20 Feb 2009 23:03:31 +0100, Thiago Jung Bauermann wrote:
> Hi,
> 
> This patch implents gdb.search_memory, exposing the functionality of the
> 'find' CLI command. Just pushed it to the branch.
[...]
> +      if (PyObject_AsReadBuffer (obj, &buffer, &val_bytes) == -1)

.././gdb/python/python.c:393: error: passing argument 3 of ‘PyObject_AsReadBuffer’ from incompatible pointer type

python-devel-2.5.2-1.fc10.x86_64

/usr/include/python2.5/abstract.h:
      /*  
	  Checks whether an arbitrary object supports the (character,
	  single segment) buffer interface.  Returns 1 on success, 0
	  on failure.

      */

     PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
					  const void **buffer,
					  Py_ssize_t *buffer_len);


Could you please check-in something backward/forward compatible?


Thanks,
Jan


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