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


2011/5/10 Tom Tromey <tromey@redhat.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

Ah, I didn't know this, that's indeed very handy, but the two
occurrences in my patch are actually still a call to Py_InitModule
without the "4". Then that probably needs to be patched instead?

Ruben

>
> Tom
>


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