[PATCH] 64-bit python support

Ruben Van Boxem vanboxem.ruben@gmail.com
Tue May 10 12:57:00 GMT 2011


Hi,

Attached is a patch that tells gdb-python to use the Py_InitModule4_64
function instead of Py_InitModule for 64-bit builds.

The latter is not in the official Python x64 Windows dll, and from
looking around on the net, neither is it present on 64-bit linux
Python libraries (can't say that for sure though). This patch allows a
successful build with mingw-w64.

Here is a link to the rationale for the different function name on the
Python website:
http://www.python.org/dev/peps/pep-0353/#specification

The patch was made using the 7.3 branch. Please comment on and/or OK
this patch. Thanks!

Ruben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-python64.patch
Type: text/x-patch
Size: 1014 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110510/dcbebf8e/attachment.bin>


More information about the Gdb-patches mailing list