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

No, there's a later define for that in modsupport.h:

#define Py_InitModule(name, methods) \
	Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \
		       PYTHON_API_VERSION)

I think the thing to do is track down why the Python headers are picking
the wrong function name for you.

Tom


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