This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] 64-bit python support
- From: Tom Tromey <tromey at redhat dot com>
- To: vanboxem dot ruben at gmail dot com
- Cc: gdb-patches at sourceware dot org, mingw64 <mingw-w64-public at lists dot sourceforge dot net>
- Date: Tue, 10 May 2011 08:29:03 -0600
- Subject: Re: [PATCH] 64-bit python support
- References: <BANLkTi=2gphWs2p_5V+wTJMUAkjHDT79uQ__10646.2358417504$1305032253$gmane$org@mail.gmail.com>
>>>>> "Ruben" == Ruben Van Boxem <vanboxem.ruben@gmail.com> writes:
Ruben> Attached is a patch that tells gdb-python to use the Py_InitModule4_64
Ruben> function instead of Py_InitModule for 64-bit builds.
I think this should not be needed. I think the bug must lie somewhere
else. I say this because Python's modsupport.h should already do this
renaming:
#if SIZEOF_SIZE_T != SIZEOF_INT
/* On a 64-bit system, rename the Py_InitModule4 so that 2.4
modules cannot get loaded into a 2.5 interpreter */
#define Py_InitModule4 Py_InitModule4_64
#endif
Tom