This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MemoryView missing from Python 2.4 and 2.6
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: "Jose E. Marchesi" <jose dot marchesi at oracle dot com>, tim dot wiederhake at intel dot com
- Cc: gdb-patches at sourceware dot org, markus dot t dot metzger at intel dot com
- Date: Thu, 23 Feb 2017 22:59:46 +0000
- Subject: Re: MemoryView missing from Python 2.4 and 2.6
- Authentication-results: sourceware.org; auth=none
- References: <87o9xsx38r.fsf@oracle.com>
On 17-02-23 17:48:20, Jose E. Marchesi wrote:
> While building git GDB on a certain distribution that features Python
> 2.6.6 (I know, ancient) we triggered a build failure:
>
> g++ -g -O2 -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode -I../../gdb/../opcodes/.. -I../../gdb/../readline/.. -I../../gdb/../zlib -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber -I../../gdb/gnulib/import -Ibuild-gnulib/import -DTUI=1 -I/usr/include/python2.6 -I/usr/include/python2.6 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -Werror -c -o py-record-btrace.o -MT py-record-btrace.o -MMD -MP -MF .deps/py-record-btrace.Tpo -fno-strict-aliasing -DNDEBUG -fwrapv ../../gdb/python/py-record-btrace.c
> ../../gdb/python/py-record-btrace.c: In function ???PyObject* btpy_insn_data(PyObject*, void*)???:
> ../../gdb/python/py-record-btrace.c:333:10: error: ???PyMemoryView_FromObject??? was not declared in this scope
> return PyMemoryView_FromObject (object);
> ^~~~~~~~~~~~~~~~~~~~~~~
> ../../gdb/python/py-record-btrace.c:333:10: note: suggested alternative: ???PyBuffer_FromObject???
> return PyMemoryView_FromObject (object);
> ^~~~~~~~~~~~~~~~~~~~~~~
> PyBuffer_FromObject
> make: *** [py-record-btrace.o] Error 1
>
> Looks like the Memory View object was introduced in Python 2.7.
Hi Tim,
Could you take a look?
--
Yao