This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [PATCH] 64-bit python support


>>>>> "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


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